# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
293938 |
2020-09-08T13:51:42 Z |
7_7_7 |
Go (COCI16_go) |
C++17 |
|
1 ms |
384 KB |
#include <bits/stdc++.h>
using namespace std;
int n;
int mx;
int cnt;
string s;
string res;
int main()
{
ios_base::sync_with_stdio(false);
cin >> n;
for(int i = 1; i <= n; i ++){
int x, y;
cin >> s >> x >> y;
if((y / x) > mx){
mx = (y / x);
res = s;
}
if(y >= x) cnt ++, y -= x;
cnt += (y / (x - 2));
}
cout << cnt << "\n" << res << "\n";
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
384 KB |
Output is correct |
2 |
Correct |
1 ms |
384 KB |
Output is correct |
3 |
Correct |
1 ms |
384 KB |
Output is correct |
4 |
Correct |
1 ms |
384 KB |
Output is correct |
5 |
Correct |
1 ms |
384 KB |
Output is correct |
6 |
Correct |
1 ms |
384 KB |
Output is correct |
7 |
Partially correct |
1 ms |
384 KB |
Partially correct |
8 |
Correct |
1 ms |
384 KB |
Output is correct |
9 |
Partially correct |
1 ms |
384 KB |
Partially correct |
10 |
Correct |
0 ms |
384 KB |
Output is correct |
11 |
Partially correct |
0 ms |
384 KB |
Partially correct |
12 |
Partially correct |
1 ms |
384 KB |
Partially correct |
13 |
Partially correct |
1 ms |
384 KB |
Partially correct |
14 |
Correct |
1 ms |
384 KB |
Output is correct |
15 |
Correct |
1 ms |
384 KB |
Output is correct |
16 |
Correct |
1 ms |
384 KB |
Output is correct |
17 |
Partially correct |
1 ms |
384 KB |
Partially correct |
18 |
Partially correct |
1 ms |
384 KB |
Partially correct |
19 |
Partially correct |
1 ms |
384 KB |
Partially correct |
20 |
Partially correct |
1 ms |
384 KB |
Partially correct |
21 |
Partially correct |
1 ms |
384 KB |
Partially correct |
22 |
Partially correct |
1 ms |
384 KB |
Partially correct |
23 |
Partially correct |
1 ms |
384 KB |
Partially correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |