結果

問題 No.414 衝動
ユーザー Mcpu3Mcpu3
提出日時 2018-06-25 17:45:37
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 27,572 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 13:52:16
合計ジャッジ時間 1,783 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	long m;
	scanf("%ld",&m);
	if(m%2==0)printf("%ld %ld",m/2,m/(m/2));
	else if(m%3==0)printf("%ld %ld",m/3,m/(m/3));
	else if(m%5==0)printf("%ld %ld",m/5,m/(m/5));
	else printf("1 %ld",m);
	return 0;
}
0