結果
問題 |
No.1664 Unstable f(n)
|
ユーザー |
![]() |
提出日時 | 2021-09-03 21:28:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 577 ms |
コンパイル使用メモリ | 82,332 KB |
実行使用メモリ | 75,564 KB |
最終ジャッジ日時 | 2024-12-15 10:03:28 |
合計ジャッジ時間 | 3,741 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 10 |
ソースコード
""" """ import sys from sys import stdin n = int(stdin.readline()) ans = n for i in range(2,1000000): x = 1 cnt = 0 while x * i <= n: x *= i cnt += 1 k = n - x ans = min(ans , i + cnt + k) print (ans)