| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1200215 | val1262 | Infinite Race (EGOI24_infiniterace2) | C++20 | 20 ms | 328 KiB |
#include <iostream>
#define int long long
using namespace std;
signed main() {
int nbParticipants, nbDepass;
cin >> nbParticipants >> nbDepass;
int nbTours = 0, pDevant = 1;
for (int d = 0; d < nbDepass; d++) {
int nb;
cin >> nb;
if (nb < 0) { //autre qui double
pDevant = 1;
}
else if (pDevant == 1) {
pDevant = 0;
}
else {
nbTours++;
}
}
cout << nbTours << '\n';
return 0;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
