Submission #844582

# Submission time Handle Problem Language Result Execution time Memory
844582 2023-09-05T14:17:45 Z EntityPlantt Lost in the cycle (IOI19_cycle) C++14
0 / 100
0 ms 344 KB
#include "cycle.h"
void escape(int n) {
    while (!jump(1));
	while (jump(1));
	jump(n - 1);
}

Compilation message

cycle.cpp: In function 'void escape(int)':
cycle.cpp:3:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    3 |     while (!jump(1));
      |     ^~~~~
cycle.cpp:4:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
    4 |  while (jump(1));
      |  ^~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB Too many queries.
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Incorrect 0 ms 344 KB Too many queries.
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB Too many queries.
3 Halted 0 ms 0 KB -