結果

問題 No.1176 少ない質問
ユーザー kojihashimoto-kobekojihashimoto-kobe
提出日時 2021-07-27 23:29:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 197 bytes
コンパイル時間 1,135 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 75,684 KB
最終ジャッジ日時 2023-10-01 04:05:22
合計ジャッジ時間 3,902 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
75,608 KB
testcase_01 AC 75 ms
75,576 KB
testcase_02 AC 75 ms
75,532 KB
testcase_03 AC 75 ms
75,256 KB
testcase_04 AC 75 ms
75,364 KB
testcase_05 AC 79 ms
75,260 KB
testcase_06 AC 75 ms
75,288 KB
testcase_07 AC 77 ms
75,644 KB
testcase_08 AC 75 ms
75,604 KB
testcase_09 AC 75 ms
75,640 KB
testcase_10 AC 76 ms
75,520 KB
testcase_11 AC 76 ms
75,632 KB
testcase_12 AC 74 ms
75,408 KB
testcase_13 AC 74 ms
75,252 KB
testcase_14 AC 75 ms
75,468 KB
testcase_15 AC 75 ms
75,624 KB
testcase_16 AC 74 ms
75,400 KB
testcase_17 AC 76 ms
75,356 KB
testcase_18 AC 77 ms
75,504 KB
testcase_19 AC 74 ms
75,684 KB
testcase_20 AC 71 ms
71,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
#n**m>=aとなる必要がある。
n = 2
ans = 10**19
while True:
  if n >= ans:
    print(ans)
    exit()
  m = 1
  while n**m < a:
    m += 1
  ans = min(ans, n*m)
  n += 1

  
0