結果

問題 No.414 衝動
ユーザー 37zigen37zigen
提出日時 2016-08-24 04:42:27
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 378 bytes
コンパイル時間 3,198 ms
コンパイル使用メモリ 76,356 KB
実行使用メモリ 61,740 KB
最終ジャッジ日時 2024-04-25 21:53:02
合計ジャッジ時間 6,776 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
61,740 KB
testcase_01 AC 153 ms
54,936 KB
testcase_02 AC 154 ms
55,116 KB
testcase_03 AC 166 ms
54,916 KB
testcase_04 AC 146 ms
54,768 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

package No400番台;

import java.util.Scanner;

public class Q414 {
	public static void main(String[] args) {
		new Q414().solver();
	}

	void solver() {
		Scanner sc = new Scanner(System.in);
		long M = sc.nextLong();
		for (int i = 2; i * i <= M; i++) {
			if (M % i == 0) {
				System.out.println(i + " " + (M / i));
				return;
			}
		}
		System.out.println(1+" "+M);
	}
}
0