답안 #710730

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
710730 2023-03-15T17:17:12 Z ElenaBM Ljeto (COCI21_ljeto) C++17
50 / 50
1 ms 304 KB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n, pa = 0, pb = 0;
    vector<int> last(8, -11);
    cin>> n;
    for (int i= 0; i <n; ++i){
        int t, j1, j2;
        cin>> t>> j1>> j2;
        if (j1 < 5) pa += 100;
        else pb += 100;
        if (t- last[j1-1] <= 10){
            if (j1 < 5) pa += 50;
            else pb += 50;
        }
        last[j1 -1] = t;
    }
    cout<< pa<< ' ' << pb << '\n';

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 300 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 300 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 300 KB Output is correct
4 Correct 1 ms 296 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 300 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 304 KB Output is correct
12 Correct 1 ms 296 KB Output is correct
13 Correct 0 ms 212 KB Output is correct