結果
| 問題 | No.1700 floor X |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-01-07 23:39:31 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 82 ms / 2,000 ms |
| + 238µs | |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 95,828 KB |
| 実行使用メモリ | 84,532 KB |
| 最終ジャッジ日時 | 2026-09-05 08:22:43 |
| 合計ジャッジ時間 | 6,383 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 44 |
ソースコード
import sys
input = sys.stdin.readline
def isqrt(n):
yes = 0
no = 10 ** 18
while no - yes != 1:
mid = (yes + no)//2
if mid * mid <= n:
yes = mid
else:
no = mid
return yes
T = int(input())
for _ in range(T):
print(isqrt(int(input())))
rlangevin