# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
974306 | vjudge1 | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 360 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.
#include <bits/stdc++.h>
using namespace std;
pair<bool, int> players[9];
int main(){
bool who;
int n, poin1 = 0, poin2 = 0;
cin >> n;
for(int i = 1; i <= n;i++){
int detik, w, l;
cin >> detik >> w >> l;
if(w <= 4){
if(players[w].first && players[w].second >= detik){
poin1 += 150;
players[w].second = detik + 10;
}
else{
poin1 += 100;
players[w].first = true;
players[w].second = detik + 10;
}
}
else{
if(players[w].first && players[w].second >= detik){
poin2 += 150;
players[w].second = detik + 10;
}
else{
poin2 += 100;
players[w].first = true;
players[w].second = detik + 10;
}
}
}
cout << poin1 << " " << poin2;
}
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... |