結果

問題 No.312 置換処理
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-10 01:25:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 3,421 ms
コンパイル使用メモリ 74,196 KB
実行使用メモリ 37,820 KB
最終ジャッジ日時 2024-04-17 15:15:48
合計ジャッジ時間 5,947 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
37,032 KB
testcase_01 WA -
testcase_02 AC 69 ms
37,392 KB
testcase_03 WA -
testcase_04 AC 44 ms
36,576 KB
testcase_05 AC 43 ms
36,764 KB
testcase_06 AC 44 ms
36,824 KB
testcase_07 AC 53 ms
37,036 KB
testcase_08 AC 42 ms
36,524 KB
testcase_09 AC 43 ms
37,168 KB
testcase_10 AC 46 ms
37,160 KB
testcase_11 AC 56 ms
37,308 KB
testcase_12 AC 49 ms
36,524 KB
testcase_13 AC 47 ms
36,976 KB
testcase_14 AC 46 ms
36,660 KB
testcase_15 AC 43 ms
36,636 KB
testcase_16 AC 45 ms
36,848 KB
testcase_17 AC 44 ms
36,640 KB
testcase_18 AC 43 ms
37,160 KB
testcase_19 AC 44 ms
37,100 KB
testcase_20 AC 43 ms
37,080 KB
testcase_21 AC 43 ms
37,172 KB
testcase_22 AC 43 ms
37,056 KB
testcase_23 AC 42 ms
37,076 KB
testcase_24 AC 43 ms
37,080 KB
testcase_25 WA -
testcase_26 AC 43 ms
36,640 KB
testcase_27 WA -
testcase_28 AC 43 ms
36,660 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 44 ms
37,168 KB
testcase_32 AC 46 ms
36,628 KB
testcase_33 AC 54 ms
37,164 KB
testcase_34 AC 64 ms
37,132 KB
testcase_35 AC 45 ms
37,164 KB
testcase_36 AC 43 ms
36,832 KB
testcase_37 AC 43 ms
36,912 KB
testcase_38 AC 46 ms
37,080 KB
testcase_39 AC 45 ms
37,148 KB
testcase_40 AC 49 ms
36,848 KB
testcase_41 AC 43 ms
37,056 KB
testcase_42 AC 42 ms
37,168 KB
testcase_43 AC 43 ms
36,852 KB
testcase_44 AC 45 ms
37,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Exercise75{
  public static void main (String[] args) throws IOException{

    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String nStr = new String(in.readLine());

    long n = Long.parseLong(nStr);

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

    System.out.println(n);
  }
}
0