Submission #885995

#TimeUsernameProblemLanguageResultExecution timeMemory
885995karimovOdd-even (IZhO11_oddeven)C++17
Compilation error
0 ms0 KiB
import math n = float(input()) x = math.ceil((math.ceil(math.sqrt(8 * n + 1)) - 1) / 2) print(2*n-x)

Compilation message (stderr)

oddeven.cpp:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~