# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
441657 | rainboy | Go (COCI16_go) | C11 | 1 ms | 276 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
#define N 70
int main() {
static char ss[N][32];
static int aa[N], bb[N];
int n, i, i_, k_, sum;
scanf("%d", &n);
sum = 0, k_ = 0, i_ = -1;
for (i = 0; i < n; i++) {
int k;
scanf("%s%d%d", ss[i], &aa[i], &bb[i]);
k = (bb[i] - 2) / (aa[i] - 2);
sum += k;
if (k_ < k)
k_ = k, i_ = i;
}
printf("%d\n", sum);
printf("%s\n", ss[i_]);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |