結果

問題 No.312 置換処理
ユーザー ぴろずぴろず
提出日時 2015-12-05 00:07:51
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 2,175 ms
コンパイル使用メモリ 71,772 KB
実行使用メモリ 57,768 KB
最終ジャッジ日時 2023-10-12 14:50:24
合計ジャッジ時間 9,762 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,892 KB
testcase_01 WA -
testcase_02 AC 234 ms
55,848 KB
testcase_03 WA -
testcase_04 AC 121 ms
56,044 KB
testcase_05 AC 118 ms
56,384 KB
testcase_06 AC 121 ms
55,840 KB
testcase_07 AC 127 ms
55,552 KB
testcase_08 AC 119 ms
56,060 KB
testcase_09 AC 119 ms
55,664 KB
testcase_10 AC 119 ms
55,728 KB
testcase_11 AC 122 ms
55,800 KB
testcase_12 AC 119 ms
55,848 KB
testcase_13 AC 118 ms
55,900 KB
testcase_14 AC 119 ms
55,568 KB
testcase_15 AC 121 ms
57,768 KB
testcase_16 AC 120 ms
55,736 KB
testcase_17 AC 121 ms
55,804 KB
testcase_18 AC 123 ms
55,664 KB
testcase_19 AC 120 ms
55,560 KB
testcase_20 AC 120 ms
55,548 KB
testcase_21 AC 119 ms
55,920 KB
testcase_22 AC 123 ms
55,560 KB
testcase_23 AC 120 ms
55,796 KB
testcase_24 AC 121 ms
53,708 KB
testcase_25 AC 123 ms
55,912 KB
testcase_26 AC 122 ms
56,064 KB
testcase_27 AC 120 ms
55,716 KB
testcase_28 AC 120 ms
55,576 KB
testcase_29 AC 120 ms
55,520 KB
testcase_30 WA -
testcase_31 AC 121 ms
55,512 KB
testcase_32 AC 234 ms
56,204 KB
testcase_33 AC 235 ms
55,656 KB
testcase_34 AC 236 ms
55,804 KB
testcase_35 AC 124 ms
55,780 KB
testcase_36 AC 122 ms
56,084 KB
testcase_37 AC 122 ms
55,716 KB
testcase_38 AC 122 ms
55,980 KB
testcase_39 AC 121 ms
55,748 KB
testcase_40 AC 122 ms
55,872 KB
testcase_41 AC 121 ms
56,048 KB
testcase_42 AC 122 ms
55,696 KB
testcase_43 AC 124 ms
55,528 KB
testcase_44 AC 119 ms
55,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no312;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		long max = Math.max( (long) Math.sqrt(n), 10000000);
		for(long i=3;i<=max;i++) {
			if (n % i == 0) {
				System.out.println(i);
				return;
			}
		}
		System.out.println(n);
	}
}
0