結果

問題 No.1700 floor X
ユーザー harurunharurun
提出日時 2021-09-11 00:25:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 77,944 KB
最終ジャッジ日時 2023-09-16 08:51:22
合計ジャッジ時間 8,629 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,276 KB
testcase_01 AC 132 ms
77,596 KB
testcase_02 AC 129 ms
77,228 KB
testcase_03 AC 128 ms
77,372 KB
testcase_04 AC 128 ms
77,468 KB
testcase_05 AC 127 ms
77,260 KB
testcase_06 AC 127 ms
77,488 KB
testcase_07 AC 124 ms
77,452 KB
testcase_08 AC 126 ms
77,368 KB
testcase_09 AC 126 ms
77,568 KB
testcase_10 AC 127 ms
77,396 KB
testcase_11 AC 128 ms
77,172 KB
testcase_12 AC 124 ms
77,480 KB
testcase_13 AC 126 ms
77,252 KB
testcase_14 AC 127 ms
77,424 KB
testcase_15 AC 125 ms
77,180 KB
testcase_16 AC 127 ms
77,364 KB
testcase_17 AC 125 ms
77,416 KB
testcase_18 AC 127 ms
77,568 KB
testcase_19 AC 125 ms
77,476 KB
testcase_20 AC 127 ms
77,416 KB
testcase_21 AC 133 ms
77,480 KB
testcase_22 AC 135 ms
77,916 KB
testcase_23 AC 132 ms
77,580 KB
testcase_24 AC 133 ms
77,528 KB
testcase_25 AC 132 ms
77,608 KB
testcase_26 AC 134 ms
77,848 KB
testcase_27 AC 133 ms
77,532 KB
testcase_28 AC 131 ms
77,528 KB
testcase_29 AC 131 ms
77,600 KB
testcase_30 AC 133 ms
77,944 KB
testcase_31 AC 129 ms
77,336 KB
testcase_32 AC 132 ms
77,624 KB
testcase_33 AC 133 ms
77,528 KB
testcase_34 AC 134 ms
77,612 KB
testcase_35 AC 135 ms
77,332 KB
testcase_36 AC 136 ms
77,744 KB
testcase_37 AC 136 ms
77,928 KB
testcase_38 AC 136 ms
77,360 KB
testcase_39 AC 133 ms
77,584 KB
testcase_40 AC 136 ms
77,656 KB
testcase_41 AC 131 ms
77,560 KB
testcase_42 AC 75 ms
71,260 KB
testcase_43 AC 127 ms
77,276 KB
testcase_44 AC 130 ms
77,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
  N=int(input())
  assert(1<=N<=10**18)
  ac=1
  wa=10**9+1
  for i in range(100):
    k=(ac+wa)//2
    if k*k<=N:
      ac=k
    else:
      wa=k
  print(ac)
  return


def main():
  T=int(input())
  assert(1<=T<=10**4)
  for i in range(T):
    solve()
  return

main()
0