結果

問題 No.136 Yet Another GCD Problem
ユーザー fjafjafjafjafjafja
提出日時 2017-10-01 12:10:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 293 bytes
コンパイル時間 3,324 ms
コンパイル使用メモリ 75,084 KB
実行使用メモリ 54,408 KB
最終ジャッジ日時 2024-04-27 17:27:30
合計ジャッジ時間 9,782 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
54,012 KB
testcase_01 AC 128 ms
53,988 KB
testcase_02 AC 128 ms
54,096 KB
testcase_03 AC 124 ms
53,824 KB
testcase_04 AC 114 ms
54,360 KB
testcase_05 AC 125 ms
54,152 KB
testcase_06 AC 129 ms
54,244 KB
testcase_07 AC 130 ms
54,408 KB
testcase_08 AC 126 ms
54,268 KB
testcase_09 AC 125 ms
53,800 KB
testcase_10 AC 127 ms
54,104 KB
testcase_11 AC 128 ms
53,968 KB
testcase_12 AC 125 ms
54,340 KB
testcase_13 AC 127 ms
54,064 KB
testcase_14 AC 116 ms
53,052 KB
testcase_15 AC 127 ms
54,100 KB
testcase_16 AC 129 ms
54,072 KB
testcase_17 AC 126 ms
53,824 KB
testcase_18 AC 126 ms
53,756 KB
testcase_19 AC 125 ms
53,800 KB
testcase_20 AC 126 ms
54,024 KB
testcase_21 AC 114 ms
52,972 KB
testcase_22 AC 125 ms
54,112 KB
testcase_23 AC 127 ms
54,292 KB
testcase_24 AC 127 ms
53,984 KB
testcase_25 AC 127 ms
54,028 KB
testcase_26 AC 127 ms
54,112 KB
testcase_27 AC 129 ms
54,224 KB
testcase_28 AC 126 ms
54,112 KB
testcase_29 AC 126 ms
53,804 KB
testcase_30 AC 116 ms
52,676 KB
testcase_31 AC 125 ms
54,084 KB
testcase_32 AC 126 ms
53,832 KB
testcase_33 AC 114 ms
53,168 KB
testcase_34 AC 127 ms
54,284 KB
testcase_35 AC 126 ms
53,952 KB
testcase_36 AC 114 ms
52,956 KB
testcase_37 AC 128 ms
54,012 KB
testcase_38 AC 125 ms
54,200 KB
testcase_39 AC 115 ms
52,984 KB
testcase_40 AC 125 ms
54,048 KB
testcase_41 AC 114 ms
53,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N136 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt(),k=sc.nextInt();
		int i=2;
		int ans=0;
		while(true){
			if(n%i==0){
				ans=n/i;
				break;
			}
			i++;
		}
		System.out.println(ans);
	}

}
0