結果
問題 | No.414 衝動 |
ユーザー | ym678 |
提出日時 | 2016-08-28 00:22:38 |
言語 | Java21 (openjdk 21) |
結果 |
TLE
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 2,470 ms |
コンパイル使用メモリ | 76,528 KB |
実行使用メモリ | 62,284 KB |
最終ジャッジ日時 | 2024-04-26 07:08:15 |
合計ジャッジ時間 | 6,294 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 171 ms
62,284 KB |
testcase_01 | AC | 172 ms
54,920 KB |
testcase_02 | AC | 166 ms
55,072 KB |
testcase_03 | AC | 183 ms
55,312 KB |
testcase_04 | AC | 177 ms
54,988 KB |
testcase_05 | TLE | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long t = 2; for(;;){ if(N % t == 0){ break; }else{ t++; } } long ans = N / t; System.out.println(ans+" "+t); } }