結果

問題 No.312 置換処理
ユーザー gu_21816943gu_21816943
提出日時 2017-06-28 00:24:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 551 bytes
コンパイル時間 1,965 ms
コンパイル使用メモリ 74,768 KB
実行使用メモリ 51,964 KB
最終ジャッジ日時 2024-04-15 03:39:00
合計ジャッジ時間 5,886 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
37,232 KB
testcase_01 WA -
testcase_02 AC 72 ms
38,216 KB
testcase_03 WA -
testcase_04 AC 57 ms
36,648 KB
testcase_05 AC 57 ms
36,792 KB
testcase_06 AC 58 ms
37,208 KB
testcase_07 AC 61 ms
37,148 KB
testcase_08 AC 56 ms
37,388 KB
testcase_09 AC 56 ms
37,320 KB
testcase_10 AC 56 ms
37,072 KB
testcase_11 AC 57 ms
37,024 KB
testcase_12 AC 56 ms
37,120 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 56 ms
36,984 KB
testcase_23 AC 55 ms
37,152 KB
testcase_24 AC 56 ms
37,292 KB
testcase_25 WA -
testcase_26 AC 56 ms
37,200 KB
testcase_27 WA -
testcase_28 AC 56 ms
37,332 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 58 ms
36,764 KB
testcase_33 AC 60 ms
37,136 KB
testcase_34 AC 61 ms
37,332 KB
testcase_35 AC 56 ms
36,784 KB
testcase_36 AC 56 ms
37,420 KB
testcase_37 AC 55 ms
37,068 KB
testcase_38 WA -
testcase_39 AC 57 ms
37,108 KB
testcase_40 AC 57 ms
37,152 KB
testcase_41 AC 56 ms
37,152 KB
testcase_42 AC 57 ms
37,148 KB
testcase_43 AC 56 ms
37,108 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

class Main {
	static PrintWriter out = new PrintWriter(System.out);
	static String str;

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long len = Long.parseLong(br.readLine());

		int i;
		double sqr=Math.sqrt(len);
		for(i=3;i<=sqr;i+=2){
			if(len%i==0){
				System.out.println(i);
				return;
			}
		}
		System.out.println(len);
	}
}
0