Submission #691882

#TimeUsernameProblemLanguageResultExecution timeMemory
691882Elvin_FritlLjeto (COCI21_ljeto)C++17
10 / 50
0 ms212 KiB
#include <bits/stdc++.h> #define int int64_t #define ll int128_t using namespace std; int32_t main() { int T,sayp=0,sayg=0; cin>>T; int p=-11,g=-11; while(T--){ int t,r,s; cin>>t>>r>>s; if(r<5 && s<5){ continue; } if(r>4 && s>4){ continue; } if(r<5){ sayp+=100; if(t-p<=10){ sayp+=50; } p=t; } else{ sayg+=100; if(t-g<=10){ sayg+=50; } g=t; } } cout<<sayp<<" "<<sayg; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...