Submission #676512

#TimeUsernameProblemLanguageResultExecution timeMemory
676512QwertyPiOdd-even (IZhO11_oddeven)C++14
Compilation error
0 ms0 KiB
from math import sqrt n = int(input()) x = int(sqrt(n * 2)) while x * (x - 1) // 2 >= n: x -= 1 while x * (x + 1) / 2 < n: x += 1 print(n * 2 - x)

Compilation message (stderr)

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