| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 974259 | vjudge1 | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
int bef[10];
signed main(){
int n; cin >> n;
for(int i = 1; i <= 8; i++)bef[i] = -1e9;
int elang = 0, bebek = 0;
for(int i = 1; i <= n; i++){
int t,a,b; cin >> t >> a >> b;
if(a <= 4)elang += 100;
else bebek += 100;
if(t - bef[a] <= 10){
if(a <= 4)elang += 50;
else bebek += 50;
}
bef[a] = t;
}
cout << elang << " " << bebek;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
