結果

問題 No.312 置換処理
ユーザー GrenacheGrenache
提出日時 2015-12-05 00:10:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 3,073 ms
コンパイル使用メモリ 72,176 KB
実行使用メモリ 57,640 KB
最終ジャッジ日時 2023-10-12 14:51:45
合計ジャッジ時間 10,315 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,900 KB
testcase_01 WA -
testcase_02 AC 136 ms
55,820 KB
testcase_03 WA -
testcase_04 AC 121 ms
56,172 KB
testcase_05 AC 118 ms
55,652 KB
testcase_06 AC 125 ms
53,788 KB
testcase_07 AC 129 ms
55,604 KB
testcase_08 AC 122 ms
55,888 KB
testcase_09 AC 119 ms
56,032 KB
testcase_10 AC 120 ms
55,884 KB
testcase_11 AC 126 ms
56,492 KB
testcase_12 AC 122 ms
55,616 KB
testcase_13 AC 122 ms
56,532 KB
testcase_14 AC 120 ms
56,072 KB
testcase_15 AC 121 ms
55,940 KB
testcase_16 AC 121 ms
55,796 KB
testcase_17 AC 131 ms
56,212 KB
testcase_18 AC 123 ms
55,868 KB
testcase_19 AC 123 ms
55,720 KB
testcase_20 AC 124 ms
55,984 KB
testcase_21 AC 122 ms
55,596 KB
testcase_22 AC 122 ms
57,640 KB
testcase_23 AC 121 ms
55,608 KB
testcase_24 AC 121 ms
56,188 KB
testcase_25 WA -
testcase_26 AC 122 ms
55,820 KB
testcase_27 WA -
testcase_28 AC 122 ms
55,872 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 121 ms
55,644 KB
testcase_32 AC 125 ms
55,584 KB
testcase_33 AC 132 ms
55,756 KB
testcase_34 AC 130 ms
55,660 KB
testcase_35 AC 123 ms
55,488 KB
testcase_36 AC 119 ms
55,732 KB
testcase_37 AC 119 ms
55,948 KB
testcase_38 AC 119 ms
56,160 KB
testcase_39 AC 126 ms
55,848 KB
testcase_40 AC 125 ms
55,996 KB
testcase_41 AC 120 ms
55,948 KB
testcase_42 AC 120 ms
55,908 KB
testcase_43 AC 119 ms
55,872 KB
testcase_44 AC 122 ms
55,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder312 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long n = sc.nextLong();

        for (long j = 3; j * j <= n; j++) {
        	if (n % j == 0) {
        		System.out.println(j);

        		sc.close();
        		return;
        	}
        }

        System.out.println(n);

        sc.close();
    }
}
0