結果

問題 No.1176 少ない質問
ユーザー mesame3993mesame3993
提出日時 2021-11-18 01:06:38
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 269 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 87,344 KB
実行使用メモリ 79,220 KB
最終ジャッジ日時 2023-08-25 22:56:07
合計ジャッジ時間 3,360 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,324 KB
testcase_01 AC 63 ms
71,196 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 63 ms
71,224 KB
testcase_05 RE -
testcase_06 AC 64 ms
71,372 KB
testcase_07 AC 64 ms
71,372 KB
testcase_08 AC 63 ms
71,220 KB
testcase_09 AC 61 ms
71,236 KB
testcase_10 AC 60 ms
71,132 KB
testcase_11 AC 60 ms
71,388 KB
testcase_12 AC 62 ms
71,160 KB
testcase_13 AC 62 ms
71,124 KB
testcase_14 RE -
testcase_15 AC 59 ms
71,360 KB
testcase_16 AC 58 ms
71,100 KB
testcase_17 RE -
testcase_18 AC 60 ms
71,264 KB
testcase_19 AC 63 ms
71,156 KB
testcase_20 AC 58 ms
71,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline=stdin.readline
  a = int(readline())
  ans = a 
  for i in range(2, a):
    now = 1
    for j in range(60):
      if i**j > a:
        tmp = i*j
        break
    if ans < tmp:
      break
    ans = tmp
  print(ans)
main()
0