Submission #1015755

# Submission time Handle Problem Language Result Execution time Memory
1015755 2024-07-06T18:05:00 Z AliHasanli Ljeto (COCI21_ljeto) C++17
50 / 50
1 ms 452 KB
#include <bits/stdc++.h>
using namespace std;
int main(){
	ios::sync_with_stdio(0);cin.tie(0);
	int x;cin>>x;
	map<int,int>mp,cnt;
	for(int i=1;i<=x;i++){
		int t,l,r;cin>>t>>l>>r;
		cnt[(l+3)/4]+=100;
		if(mp.find(l)!=mp.end()&&mp[l]>=t-10)cnt[(l+3)/4]+=50;
		mp[l]=t;
	}
	cout<<cnt[1]<<" "<<cnt[2];
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 344 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 452 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct