結果
問題 | No.1176 少ない質問 |
ユーザー | tenten |
提出日時 | 2020-08-24 11:31:09 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 561 bytes |
コンパイル時間 | 3,936 ms |
コンパイル使用メモリ | 74,008 KB |
実行使用メモリ | 56,160 KB |
最終ジャッジ日時 | 2024-11-06 09:45:00 |
合計ジャッジ時間 | 5,690 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 7 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long max = a; long x = 2; while (true) { long y = 2; int count = 1; while (y < a) { y *= x; count++; } if (max > count * x) { max = count * x; } else { break; } x++; } System.out.println(max); } }