結果

問題 No.414 衝動
ユーザー suppy193suppy193
提出日時 2017-02-02 10:48:16
言語 C90
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 293 bytes
コンパイル時間 1,060 ms
コンパイル使用メモリ 25,632 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-28 14:00:23
合計ジャッジ時間 3,354 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,380 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 6 ms
4,376 KB
testcase_06 AC 7 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 4 ms
4,380 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 0 ms
4,376 KB
testcase_12 AC 0 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main(void) {
	long long int m, i;

	scanf("%lld", &m);
	if(m % 2 == 0){
		printf("2 %lld\n", 2, m / 2);
	}
	for(i = 3;i < sqrt(m);i += 2){
		if(m % i == 0){
			printf("%lld %lld\n", i, m / i);
			return 0;
		}
	}
	printf("1 %lld\n", m);
	
	return 0;
}
0