Submission #6490518


Source Code Expand

Copy
from math import ceil, sqrt
S = int(input())
x1, y1 = 0, 0
y2 = 0
x3 = 0
if S <= 10**9:
    x2, y2 = S, 0
    x3, y3 = 0, 1
else:
    sq_s = ceil(sqrt(S))
    x2, y2 = sq_s*sq_s - S, sq_s
    x3, y3 = sq_s, 1

print(x1, y1, x2, y2, x3, y3)

Submission Info

Submission Time
Task A - Triangle
User marble0117
Language C++14 (GCC 5.4.1)
Score 0
Code Size 254 Byte
Status CE

Compile Error

./Main.cpp:1:1: error: ‘from’ does not name a type
 from math import ceil, sqrt
 ^