# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
503976 | 2022-01-09T10:53:23 Z | nicecoder37 | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 292 KB |
/*MKAAN THE KING*/ #include <bits/stdc++.h> #define space " " #define endl "\n" #define gcd __gcd #define fi first #define se second #define mp make_pair #define pb push_back #define pf push_front #define inf 1000000000 #define md 1000000007 #define li 105 #define lo long long using namespace std; int n,a,b,c,tem1,tem2,vis[li]; int main(){ scanf("%d",&n); for(int i=1;i<=8;i++) vis[i]=-inf; for(int i=1;i<=n;i++){ scanf("%d %d %d",&a,&b,&c); if(b<=4) tem1+=100; else tem2+=100; if(a-vis[b]<=10){ if(b<=4) tem1+=50; else tem2+=50; } vis[b]=a; } printf("%d %d\n",tem1,tem2); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Output is correct |
2 | Correct | 0 ms | 204 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 292 KB | Output is correct |
2 | Correct | 0 ms | 204 KB | Output is correct |
3 | Correct | 0 ms | 204 KB | Output is correct |
4 | Correct | 0 ms | 204 KB | Output is correct |
5 | Correct | 0 ms | 204 KB | Output is correct |
6 | Correct | 0 ms | 204 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Output is correct |
2 | Correct | 0 ms | 204 KB | Output is correct |
3 | Correct | 0 ms | 292 KB | Output is correct |
4 | Correct | 0 ms | 204 KB | Output is correct |
5 | Correct | 0 ms | 204 KB | Output is correct |
6 | Correct | 0 ms | 204 KB | Output is correct |
7 | Correct | 0 ms | 204 KB | Output is correct |
8 | Correct | 0 ms | 204 KB | Output is correct |
9 | Correct | 1 ms | 204 KB | Output is correct |
10 | Correct | 1 ms | 204 KB | Output is correct |
11 | Correct | 0 ms | 204 KB | Output is correct |
12 | Correct | 0 ms | 204 KB | Output is correct |
13 | Correct | 1 ms | 204 KB | Output is correct |