結果

問題 No.414 衝動
ユーザー くれちーくれちー
提出日時 2016-08-26 22:26:51
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 272 bytes
コンパイル時間 818 ms
コンパイル使用メモリ 20,736 KB
実行使用メモリ 14,008 KB
最終ジャッジ日時 2024-04-25 23:04:05
合計ジャッジ時間 3,044 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
8,096 KB
testcase_01 AC 0 ms
6,944 KB
testcase_02 AC 0 ms
6,944 KB
testcase_03 AC 11 ms
6,940 KB
testcase_04 AC 0 ms
6,944 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%lld", &m);
      |         ^~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main() {
	long long int m, x, y, i;

	scanf("%lld", &m);

	if (m <= 3) {
		printf("%d %lld\n", 1, m);
		return 0;
	}
	for (i = 2; i < m; i++) {
		if (m % i == 0) {
			x = i;
			y = m / x;
			break;
		}
	}

	printf("%lld %lld\n", x, y);
	return 0;
}
0