結果
| 問題 |
No.1664 Unstable f(n)
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-09-03 21:56:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 125 bytes |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 82,300 KB |
| 実行使用メモリ | 54,360 KB |
| 最終ジャッジ日時 | 2024-12-15 12:57:28 |
| 合計ジャッジ時間 | 2,845 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 7 |
ソースコード
import math
N = int(input())
ans = N
for j in range(2,80):
i = int(pow(N,1/j))
ans = min(ans,i+j+(N-i**j))
print(ans)
H20