| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1336902 | valerian | Ljeto (COCI21_ljeto) | C++20 | 0 ms | 344 KiB |
#include<bits/stdc++.h>
#define ll long long
#define pb ppush_back
#define str string
#define mp make_pair
using namespace std;
vector<ll> v(9,-20);
int main(){
ll n;
cin >> n;
ll an=0;
ll qar=0;
for (int i = 0; i < n; i++) {
ll t,a,b;
cin >> t >> a >> b;
if(a<5){
if(t-v[a]<11 && t-v[a]>0 ){
an+=150;
v[a]=t;
}
else{
an+=100;
v[a]=t;
}
}
else{
if(t-v[a]<11 && t-v[a]>0 ){
qar+=150;
v[a]=t;
}
else{
qar+=100;
v[a]=t;
}
}
}
cout << an << " " << qar << "\n";
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
