結果
問題 | No.1700 floor X |
ユーザー |
|
提出日時 | 2022-12-12 01:02:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 398 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 76,544 KB |
最終ジャッジ日時 | 2024-10-15 20:00:19 |
合計ジャッジ時間 | 12,333 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 44 |
ソースコード
T = int(input())def is_lower(x, N):if x ** 2 <= N:return Truereturn Falsefor _ in range(T):N = int(input())ok = -1ng = N + 1while abs(ok - ng) > 1:mid = abs(ok + ng) // 2if is_lower(mid, N):ok = midelse:ng = midprint(ok)