Submission #1177006

#TimeUsernameProblemLanguageResultExecution timeMemory
1177006fritlLjeto (COCI21_ljeto)C++20
25 / 50
0 ms328 KiB
#include <bits/stdc++.h> #define ll long long using namespace std; ll azn[10]; //internet yoxdu eziyyet cekirem pt2 int main(){ ll n,x = 0, y =0,t,a,b; cin>>n; fill(azn+1 , azn + 9 , -1); for(ll i = 0; i<n; i++){ cin>>t>>a>>b; if(a < 5) x += 100; else y += 100; if(t - azn[a] <= 10){ if(a < 5) x += 50; else y += 50; } azn[a] = t; } cout<<x<<' '<<y<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...