| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1032725 | vjudge1 | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 432 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int const N=2e5+5;
int const inf=1e9+7;
void solve(){
int n;
cin>>n;
int prev[9];
for (int i = 0; i < 9; ++i)
prev[i]=-inf;
int c1=0,c2=0;
for (int i = 0; i < n; ++i)
{
int t,a,b;
cin>>t>>a>>b;
if(a<=4){
c1+=100;
if(prev[a]+10>=t)
c1+=50;
prev[a]=t;
}
else{
c2+=100;
if(prev[a]+10>=t)
c2+=50;
prev[a]=t;
}
}
cout<<c1<<' '<<c2<<endl;
}
int main(){
int t=1;
// cin>>t;
while(t--)
solve();
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... | ||||
