이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |