# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1198591 | Hanksburger | Ljeto (COCI21_ljeto) | C++20 | 0 ms | 396 KiB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,x,y,z,a=0,b=0,t[10]={};cin>>n;
while(n--)
{
cin>>x>>y>>z;x+=20;
if(y<5&&z>4)a+=x-t[y]<11?150:100,t[y]=x;
if(y>4&&z<5)b+=x-t[y]<11?150:100,t[y]=x;
}
cout<<a<<' '<<b;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |