結果

問題 No.312 置換処理
ユーザー YamaKasaYamaKasa
提出日時 2018-09-13 19:44:18
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 1,931 ms
コンパイル使用メモリ 72,104 KB
実行使用メモリ 56,424 KB
最終ジャッジ日時 2023-09-13 19:57:07
合計ジャッジ時間 9,510 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,464 KB
testcase_01 WA -
testcase_02 AC 138 ms
55,916 KB
testcase_03 WA -
testcase_04 AC 119 ms
55,716 KB
testcase_05 AC 118 ms
55,700 KB
testcase_06 AC 123 ms
55,708 KB
testcase_07 AC 127 ms
55,636 KB
testcase_08 AC 124 ms
55,600 KB
testcase_09 AC 120 ms
55,396 KB
testcase_10 AC 119 ms
55,412 KB
testcase_11 AC 123 ms
55,484 KB
testcase_12 AC 118 ms
55,672 KB
testcase_13 AC 119 ms
55,736 KB
testcase_14 AC 122 ms
55,944 KB
testcase_15 AC 119 ms
53,824 KB
testcase_16 AC 113 ms
55,684 KB
testcase_17 AC 118 ms
55,268 KB
testcase_18 AC 118 ms
55,792 KB
testcase_19 AC 119 ms
55,824 KB
testcase_20 AC 119 ms
55,888 KB
testcase_21 AC 119 ms
55,696 KB
testcase_22 AC 119 ms
56,424 KB
testcase_23 AC 123 ms
56,072 KB
testcase_24 AC 119 ms
56,376 KB
testcase_25 WA -
testcase_26 AC 118 ms
56,036 KB
testcase_27 WA -
testcase_28 AC 118 ms
55,856 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 119 ms
55,708 KB
testcase_32 AC 122 ms
55,752 KB
testcase_33 AC 126 ms
55,864 KB
testcase_34 AC 126 ms
56,048 KB
testcase_35 AC 119 ms
55,548 KB
testcase_36 AC 120 ms
55,348 KB
testcase_37 AC 119 ms
55,444 KB
testcase_38 AC 119 ms
55,872 KB
testcase_39 AC 119 ms
55,604 KB
testcase_40 AC 120 ms
55,604 KB
testcase_41 AC 119 ms
55,592 KB
testcase_42 AC 121 ms
55,928 KB
testcase_43 AC 120 ms
55,340 KB
testcase_44 AC 118 ms
56,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long N = scan.nextLong();
		scan.close();
		for(int i = 3; i <= Math.sqrt(N); i++) {
			if(N % i == 0) {
				System.out.println(i);
				System.exit(0);
			}
		}
		System.out.println(N);
	}
}
0