結果

問題 No.136 Yet Another GCD Problem
ユーザー Mcpu3Mcpu3
提出日時 2018-10-11 21:17:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 1,943 ms
コンパイル使用メモリ 73,808 KB
実行使用メモリ 41,456 KB
最終ジャッジ日時 2024-04-20 19:46:07
合計ジャッジ時間 7,621 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
41,140 KB
testcase_01 AC 98 ms
40,136 KB
testcase_02 AC 107 ms
41,280 KB
testcase_03 AC 94 ms
40,048 KB
testcase_04 AC 112 ms
41,000 KB
testcase_05 AC 98 ms
40,176 KB
testcase_06 AC 100 ms
40,056 KB
testcase_07 AC 113 ms
41,264 KB
testcase_08 AC 97 ms
40,012 KB
testcase_09 AC 106 ms
40,692 KB
testcase_10 AC 110 ms
40,568 KB
testcase_11 AC 113 ms
41,008 KB
testcase_12 AC 106 ms
40,108 KB
testcase_13 AC 109 ms
40,728 KB
testcase_14 AC 112 ms
40,568 KB
testcase_15 AC 121 ms
41,456 KB
testcase_16 AC 103 ms
40,240 KB
testcase_17 AC 112 ms
41,192 KB
testcase_18 AC 111 ms
40,652 KB
testcase_19 AC 100 ms
40,108 KB
testcase_20 AC 112 ms
40,996 KB
testcase_21 AC 100 ms
40,184 KB
testcase_22 AC 116 ms
41,004 KB
testcase_23 AC 114 ms
41,116 KB
testcase_24 AC 103 ms
40,256 KB
testcase_25 AC 108 ms
40,636 KB
testcase_26 AC 109 ms
40,932 KB
testcase_27 AC 105 ms
39,924 KB
testcase_28 AC 98 ms
40,048 KB
testcase_29 AC 114 ms
41,168 KB
testcase_30 AC 116 ms
41,228 KB
testcase_31 AC 112 ms
40,912 KB
testcase_32 AC 106 ms
40,140 KB
testcase_33 AC 95 ms
39,872 KB
testcase_34 AC 106 ms
40,924 KB
testcase_35 AC 108 ms
41,200 KB
testcase_36 AC 103 ms
40,020 KB
testcase_37 AC 106 ms
40,304 KB
testcase_38 AC 113 ms
41,276 KB
testcase_39 AC 106 ms
40,212 KB
testcase_40 AC 102 ms
39,892 KB
testcase_41 AC 114 ms
41,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), i;
		sc.close();
		for (i = 2; i < N; ++i) {
			if (N % i == 0) break;
		}
		System.out.print(N / i);
	}
}
0