結果

問題 No.414 衝動
ユーザー ym678
提出日時 2016-08-28 00:20:49
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 298 bytes
コンパイル時間 2,420 ms
コンパイル使用メモリ 76,024 KB
実行使用メモリ 46,916 KB
最終ジャッジ日時 2024-11-08 20:05:06
合計ジャッジ時間 7,052 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 RE * 5 TLE * 1 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int t = 2;
		for(;;){
			if(N % t == 0){
				break;
			}else{
			    t++;
			}
		}
		int ans = N / t;
   
		System.out.println(ans+" "+t);
	}
}
0