# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
674277 | Farhan_HY | Ljeto (COCI21_ljeto) | C++14 | 1 ms | 300 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define T int t;cin >> t;while(t--)
#define int long long
#define F first
#define S second
using namespace std;
const int mod = 1e9 + 7;
const int N = 5e4 + 6;
int n, lst[9];
main() {
cin >> n;
int ans1 = 0, ans2 = 0;
while(n--) {
int t, a, b;
cin >> t >> a >> b;
if (lst[a] != 0 && t - lst[a] <= 10) {
if (a <= 4) ans1 += 50;
else ans2 += 50;
}
if (a <= 4) ans1 += 100;
else ans2 += 100;
lst[a] = t;
}
cout << ans1 << ' ' << ans2;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |