Submission #885995

# Submission time Handle Problem Language Result Execution time Memory
885995 2023-12-11T10:21:06 Z karimov Odd-even (IZhO11_oddeven) C++17
Compilation error
0 ms 0 KB
import math
n = float(input())
x = math.ceil((math.ceil(math.sqrt(8 * n + 1)) - 1) / 2)
print(2*n-x)

Compilation message

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