結果

問題 No.414 衝動
ユーザー rana
提出日時 2021-09-10 21:43:14
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 265 bytes
コンパイル時間 1,384 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-11 23:06:58
合計ジャッジ時間 2,494 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
    long long i, x;
    scanf("%lld", &x);

    for (i = 2; i * i <= x; ++i) {
        if (x % i == 0) {
            printf("%lld %lld\n", i, x / i);
            return (0);
        }
    }

    printf("%lld %lld\n", 1LL, x);
}
0