| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 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;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
