結果

問題 No.1176 少ない質問
ユーザー daikisuyamadaikisuyama
提出日時 2020-08-21 22:50:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 191 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 53,764 KB
最終ジャッジ日時 2024-04-23 06:17:55
合計ジャッジ時間 1,508 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,716 KB
testcase_01 AC 36 ms
52,632 KB
testcase_02 AC 36 ms
52,264 KB
testcase_03 AC 33 ms
53,052 KB
testcase_04 AC 33 ms
53,628 KB
testcase_05 AC 32 ms
52,680 KB
testcase_06 AC 33 ms
53,600 KB
testcase_07 AC 33 ms
53,144 KB
testcase_08 AC 33 ms
53,016 KB
testcase_09 AC 34 ms
52,696 KB
testcase_10 AC 33 ms
53,764 KB
testcase_11 AC 34 ms
52,888 KB
testcase_12 AC 31 ms
53,268 KB
testcase_13 AC 34 ms
53,764 KB
testcase_14 AC 32 ms
52,712 KB
testcase_15 AC 33 ms
52,936 KB
testcase_16 AC 32 ms
52,672 KB
testcase_17 AC 32 ms
52,124 KB
testcase_18 AC 32 ms
53,408 KB
testcase_19 AC 32 ms
53,696 KB
testcase_20 AC 32 ms
53,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a=int(input())
ans=[]
for i in [2,3]:
    for j in range(200):
        if (i**j)>=a:
            ans.append(i*j)
            break
if a==5:
    print(5)
else:
    print(min(ans))
0