# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
208861 | 2020-03-12T10:55:44 Z | Sensei | Go (COCI16_go) | C++14 | 1000 ms | 504 KB |
/* DATE: 2020-03-12 13:53:43 NAME: PROBLEM: COCI16_GO */ #include <bits/stdc++.h> using namespace std; const int MAXN = 70; int k[MAXN + 7]; int m[MAXN + 7]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { scanf("%d %d", &k[i], &m[i]); } int ansv = -1; int ansi = 0; for (int i = 1; i <= n; i++) { int cnt = 0; while (m[i] >= k[i]) { m[i] -= k[i]; m[i] += 2; cnt++; } if (cnt > ansv) { ansv = cnt; ansi = i; } } cout << ansi << "\n"; return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1077 ms | 256 KB | Time limit exceeded |
2 | Execution timed out | 1059 ms | 256 KB | Time limit exceeded |
3 | Execution timed out | 1080 ms | 376 KB | Time limit exceeded |
4 | Execution timed out | 1070 ms | 256 KB | Time limit exceeded |
5 | Execution timed out | 1026 ms | 256 KB | Time limit exceeded |
6 | Execution timed out | 1077 ms | 256 KB | Time limit exceeded |
7 | Execution timed out | 1059 ms | 256 KB | Time limit exceeded |
8 | Execution timed out | 1072 ms | 256 KB | Time limit exceeded |
9 | Execution timed out | 1079 ms | 256 KB | Time limit exceeded |
10 | Execution timed out | 1073 ms | 256 KB | Time limit exceeded |
11 | Execution timed out | 1071 ms | 256 KB | Time limit exceeded |
12 | Execution timed out | 1075 ms | 376 KB | Time limit exceeded |
13 | Execution timed out | 1040 ms | 256 KB | Time limit exceeded |
14 | Execution timed out | 1053 ms | 256 KB | Time limit exceeded |
15 | Execution timed out | 1061 ms | 256 KB | Time limit exceeded |
16 | Execution timed out | 1084 ms | 256 KB | Time limit exceeded |
17 | Execution timed out | 1068 ms | 256 KB | Time limit exceeded |
18 | Execution timed out | 1053 ms | 256 KB | Time limit exceeded |
19 | Execution timed out | 1082 ms | 128 KB | Time limit exceeded |
20 | Execution timed out | 1089 ms | 256 KB | Time limit exceeded |
21 | Execution timed out | 1077 ms | 256 KB | Time limit exceeded |
22 | Execution timed out | 1100 ms | 376 KB | Time limit exceeded |
23 | Execution timed out | 1043 ms | 504 KB | Time limit exceeded |
24 | Execution timed out | 1080 ms | 376 KB | Time limit exceeded |
25 | Execution timed out | 1070 ms | 256 KB | Time limit exceeded |