Submission #2166751


Source Code Expand

Copy
x=int(input())
t=1
while(1):
  if((t*(t+1))/2>=x):break
  t+=1
print(t)

Submission Info

Submission Time
Task C - Go Home
User shomu36
Language Python3 (3.4.3)
Score 200
Code Size 76 Byte
Status
Exec Time 34 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt, 0_002.txt
All 200 / 200 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt, 1_012.txt, 1_013.txt, 1_014.txt, 1_015.txt, 1_016.txt, 1_017.txt
Case Name Status Exec Time Memory
0_000.txt 17 ms 2940 KB
0_001.txt 17 ms 2940 KB
0_002.txt 17 ms 2940 KB
1_003.txt 29 ms 2940 KB
1_004.txt 32 ms 2940 KB
1_005.txt 17 ms 2940 KB
1_006.txt 30 ms 2940 KB
1_007.txt 29 ms 2940 KB
1_008.txt 29 ms 2940 KB
1_009.txt 29 ms 2940 KB
1_010.txt 30 ms 2940 KB
1_011.txt 32 ms 2940 KB
1_012.txt 29 ms 2940 KB
1_013.txt 32 ms 2940 KB
1_014.txt 32 ms 2940 KB
1_015.txt 29 ms 2940 KB
1_016.txt 34 ms 2940 KB
1_017.txt 29 ms 2940 KB