# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
165563 | itiam | Go (COCI16_go) | C++11 | 3 ms | 396 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
int N,x,y,z,Le[73],m,mi=0,uk=0;
string A,Ls[73];
cin >> N;
for (int i=0;i<N;i++){
z=0;
cin >> A;
cin >> x >> y;
while (y>=x){
y-=x;
z+=1;
y+=2;
}
//cout << "z " << z << "\n";
uk+=z;
if (i==0){
m=z;
}
else {
if (z>m){
m=z;
mi=i;
}
}
Le[i]=z;
Ls[i]=A;
}
cout << uk << "\n" << Ls[mi];
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |