| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1176965 | husu1331 | Ljeto (COCI21_ljeto) | C++20 | 1 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
int main()
{
ll n;
cin>>n;
map<ll,ll>pa,bb;
ll p=0;
ll s=0;
for(ll i=0;i<n;i++){
ll t,b,c;
cin>>t>>b>>c;
if(b<5){
p+=100;
if(pa.count(b)>0 and t-pa[b]<=10){
p+=50;
}
pa[b]=t;
}
else{
s+=100;
if(bb.count(b)>0 and t-bb[b]<=10){
s+=50;
}
bb[b]=t;
}
}
cout<<p<<" "<<s;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
