# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
503976 | nicecoder37 | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 292 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/*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 (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... |