結果

問題 No.1700 floor X
ユーザー tobusakanatobusakana
提出日時 2022-12-12 01:02:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 366 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2024-04-23 19:11:10
合計ジャッジ時間 11,289 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,840 KB
testcase_01 AC 89 ms
71,296 KB
testcase_02 AC 86 ms
71,040 KB
testcase_03 AC 80 ms
70,400 KB
testcase_04 AC 81 ms
70,528 KB
testcase_05 AC 82 ms
70,528 KB
testcase_06 AC 82 ms
71,168 KB
testcase_07 AC 82 ms
71,424 KB
testcase_08 AC 79 ms
70,144 KB
testcase_09 AC 78 ms
70,784 KB
testcase_10 AC 83 ms
71,168 KB
testcase_11 AC 83 ms
72,448 KB
testcase_12 AC 92 ms
72,320 KB
testcase_13 AC 86 ms
70,528 KB
testcase_14 AC 83 ms
71,424 KB
testcase_15 AC 81 ms
70,784 KB
testcase_16 AC 84 ms
71,168 KB
testcase_17 AC 80 ms
70,784 KB
testcase_18 AC 85 ms
70,400 KB
testcase_19 AC 82 ms
71,424 KB
testcase_20 AC 81 ms
70,272 KB
testcase_21 AC 342 ms
76,288 KB
testcase_22 AC 338 ms
76,160 KB
testcase_23 AC 335 ms
76,160 KB
testcase_24 AC 344 ms
76,288 KB
testcase_25 AC 340 ms
76,416 KB
testcase_26 AC 352 ms
76,288 KB
testcase_27 AC 344 ms
76,416 KB
testcase_28 AC 336 ms
76,544 KB
testcase_29 AC 353 ms
76,288 KB
testcase_30 AC 352 ms
76,288 KB
testcase_31 AC 340 ms
76,288 KB
testcase_32 AC 340 ms
76,288 KB
testcase_33 AC 355 ms
76,032 KB
testcase_34 AC 344 ms
76,416 KB
testcase_35 AC 353 ms
76,160 KB
testcase_36 AC 344 ms
76,416 KB
testcase_37 AC 359 ms
76,160 KB
testcase_38 AC 343 ms
76,288 KB
testcase_39 AC 352 ms
76,276 KB
testcase_40 AC 349 ms
76,288 KB
testcase_41 AC 362 ms
76,160 KB
testcase_42 AC 37 ms
51,840 KB
testcase_43 AC 366 ms
76,160 KB
testcase_44 AC 364 ms
76,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
def is_lower(x, N):
  if x ** 2 <= N:
    return True
  return False

for _ in range(T):
  N = int(input())
  ok = -1
  ng = N + 1
  while abs(ok - ng) > 1:
    mid = abs(ok + ng) // 2
    if is_lower(mid, N):
      ok = mid
    else:
      ng = mid
  print(ok)
  
  
0