結果

問題 No.1176 少ない質問
ユーザー mesame3993mesame3993
提出日時 2021-11-18 01:08:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 271 bytes
コンパイル時間 994 ms
コンパイル使用メモリ 86,488 KB
実行使用メモリ 71,316 KB
最終ジャッジ日時 2023-08-25 22:59:15
合計ジャッジ時間 3,386 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,800 KB
testcase_01 AC 72 ms
71,136 KB
testcase_02 AC 71 ms
71,164 KB
testcase_03 AC 72 ms
71,056 KB
testcase_04 AC 73 ms
71,020 KB
testcase_05 AC 73 ms
71,276 KB
testcase_06 AC 72 ms
70,840 KB
testcase_07 AC 73 ms
70,920 KB
testcase_08 AC 74 ms
70,980 KB
testcase_09 AC 72 ms
71,056 KB
testcase_10 AC 74 ms
70,920 KB
testcase_11 AC 73 ms
71,316 KB
testcase_12 AC 73 ms
71,044 KB
testcase_13 AC 72 ms
71,028 KB
testcase_14 AC 71 ms
70,968 KB
testcase_15 AC 71 ms
71,072 KB
testcase_16 AC 72 ms
71,056 KB
testcase_17 AC 72 ms
71,048 KB
testcase_18 AC 72 ms
71,116 KB
testcase_19 AC 71 ms
71,248 KB
testcase_20 AC 72 ms
71,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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