| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 170320 | ngmh | Go (COCI16_go) | C++11 | 2 ms | 408 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<long long, long long> pi;
long long n, a[70], b[70], t, m, p = 80, l;
string c[70];
int main(){
cin >> n;
for(int i = 0; i < n; i++){
cin >> c[i] >> a[i] >> b[i];
t = 0;
if(a[i] > b[i]) continue;
while(true){
b[i] -= a[i];
if(b[i] < 0) break;
t++;
l++;
b[i] += 2;
}
if(t > m){
m = t;
p = i;
}
}
cout << l << "\n" << c[p];
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
