Submission #752299

#TimeUsernameProblemLanguageResultExecution timeMemory
752299AugustynLjeto (COCI21_ljeto)C++17
50 / 50
1 ms212 KiB
#include<iostream> #include<vector> using namespace std; int main() { int n,odp[2]; odp[0]=odp[1]=0; cin>>n; vector<int>timeost(9,-1000000); for(int i=0;i<n;++i) { int t,a,b; cin>>t>>a>>b; odp[a/5]+=100; if(t-timeost[a]<=10) odp[a/5]+=50; timeost[a]=t; } cout<<odp[0]<<" "<<odp[1]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...