# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1027360 | 2024-07-19T04:11:05 Z | vjudge1 | Ljeto (COCI21_ljeto) | C++ | 1 ms | 348 KB |
#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; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 1 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 348 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 348 KB | Output is correct |
6 | Correct | 1 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 348 KB | Output is correct |
9 | Correct | 1 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Incorrect | 0 ms | 348 KB | Output isn't correct |
12 | Halted | 0 ms | 0 KB | - |