Submission #862193

# Submission time Handle Problem Language Result Execution time Memory
862193 2023-10-17T16:29:00 Z Mizo_Compiler Ljeto (COCI21_ljeto) C++14
50 / 50
0 ms 436 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
   int n;
   cin >> n;
   int ls[10], a = 0, b = 0;
   for (int i=1;i<=8;i++)ls[i]=-100;
   for (int i = 0; i < n; i++) {
      int t, x, y;
      cin >> t >> x >> y;
      if (x <= 4)a += 100+50*(t-ls[x]<=10), ls[x] = t;
      else b += 100+50*(t-ls[x]<=10), ls[x] = t;
   }
   cout << a << " " << b;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory 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 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory 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 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 436 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct