Submission #66063
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | def intSqrt(x: int ) -> int : if x <= 1: return x le, gt = 0, 10**9 * 5 while gt - le > 1: mid = (le + gt) // 2 if mid * mid <= x: le = mid else : gt = mid return le T = int (input()) assert 1 <= T <= 314 for _ in range(T): N = int (input()) assert 1 <= N <= 10**18 print(intSqrt(2 * N) // 2) |
ステータス
項目 | データ |
---|---|
問題 | 1483 - Laying of Tiles |
ユーザー名 | syoribu |
投稿日時 | 2021-04-06 12:19:28 |
言語 | Python3 |
状態 | Accepted |
得点 | 3 |
ソースコード長 | 399 Byte |
最大実行時間 | 49 ms |
最大メモリ使用量 | 3420 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 3 / 3 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 36 ms | 3268 KB |
1
|
in02.txt | AC | 36 ms | 3276 KB |
1
|
in03.txt | AC | 35 ms | 3284 KB |
1
|
in04.txt | AC | 36 ms | 3288 KB |
1
|
in05.txt | AC | 30 ms | 3292 KB |
1
|
in06.txt | AC | 32 ms | 3420 KB |
1
|
in07.txt | AC | 39 ms | 3420 KB |
1
|
in08.txt | AC | 49 ms | 3296 KB |
1
|
in09.txt | AC | 41 ms | 3292 KB |
1
|
in10.txt | AC | 41 ms | 3288 KB |
1
|
in11.txt | AC | 34 ms | 3292 KB |
1
|
in12.txt | AC | 35 ms | 3292 KB |
1
|
in13.txt | AC | 41 ms | 3292 KB |
1
|
in14.txt | AC | 41 ms | 3288 KB |
1
|
in15.txt | AC | 37 ms | 3292 KB |
1
|
in16.txt | AC | 38 ms | 3292 KB |
1
|
in17.txt | AC | 34 ms | 3176 KB |
1
|
in18.txt | AC | 33 ms | 3312 KB |
1
|
in19.txt | AC | 34 ms | 3324 KB |
1
|
in20.txt | AC | 38 ms | 3324 KB |
1
|
sample01.txt | AC | 40 ms | 3324 KB |
1
|
sample02.txt | AC | 32 ms | 3324 KB |
1
|