結果
| 問題 | No.1176 少ない質問 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-27 23:29:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 1,000 ms |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 85,432 KB |
| 実行使用メモリ | 58,880 KB |
| 最終ジャッジ日時 | 2026-04-03 16:27:22 |
| 合計ジャッジ時間 | 2,224 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
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