# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1027360 | vjudge1 | Ljeto (COCI21_ljeto) | C++98 | 1 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N, T, A, B, Time=0, PointA=0, PointB=0, Current=0, PrevTime=0, CurrentS=0;
cin>>N;
for(int i=0; i<N; i++){
cin>>T>>A>>B;
if (A==CurrentS && Current==1 && (T-Time)<=10){
PointA+=50;
}
if (A==CurrentS && Current==2 && (T-Time)<=10){
PointB+=50;
}
if (A==1 || A==2 || A==3 || A==4){
PointA+=100;
Current=1;
CurrentS=A;
}
else {
PointB+=100;
Current=2;
CurrentS=A;
}
Time=T;
}
cout<<PointA<<" "<<PointB;
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |