# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
499425 |
2021-12-28T11:43:44 Z |
DolzX01 |
Ljeto (COCI21_ljeto) |
C++14 |
|
1 ms |
204 KB |
#include <bits/stdc++.h>
using namespace std;
int p[8];
int main()
{
int x=0,y=0,t=0,a,b,n;
cin>>n;
for (int i=0;i<n;i++)
{
cin>>t>>a>>b;
if (a>4)
{
if (p[a]!=0)
{
if (t-p[a]<=10)
{
y+=150;
}
else
{
y+=100;
}
}
else
{
y+=100;
}
}
else
{
if (p[a]!=0)
{
if (t-p[a]<=10)
{
x+=150;
}
else
{
x+=100;
}
}
else
{
x+=100;
}
}
p[a]=t;
}
cout<<x<<' '<<y;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
3 |
Correct |
0 ms |
204 KB |
Output is correct |
4 |
Correct |
0 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
3 |
Correct |
0 ms |
204 KB |
Output is correct |
4 |
Correct |
0 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
0 ms |
204 KB |
Output is correct |
7 |
Correct |
0 ms |
204 KB |
Output is correct |
8 |
Correct |
0 ms |
204 KB |
Output is correct |
9 |
Correct |
0 ms |
204 KB |
Output is correct |
10 |
Correct |
0 ms |
204 KB |
Output is correct |
11 |
Correct |
1 ms |
204 KB |
Output is correct |
12 |
Correct |
0 ms |
204 KB |
Output is correct |
13 |
Correct |
1 ms |
204 KB |
Output is correct |