結果
| 問題 | No.1700 floor X |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-01-07 23:39:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2026-04-14 13:34:32 |
| 合計ジャッジ時間 | 5,067 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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