結果
問題 | No.1700 floor X |
ユーザー |
|
提出日時 | 2021-10-08 23:32:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 335 ms / 2,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-03 10:36:56 |
合計ジャッジ時間 | 14,331 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 44 |
ソースコード
def floor_sqrt(n): y = 10**20 def is_smaller(x): if x**2 <= n: return True return False x = 0 while y-x>1: mid = (y+x)//2 if is_smaller(mid): x = mid else: y = mid return x def answer(): n = int(input()) print(floor_sqrt(n)) t = int(input()) for _ in range(t): answer()