結果

問題 No.809 かけ算
ユーザー shidoro_onnshidoro_onn
提出日時 2019-06-17 22:56:45
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 352 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 29,056 KB
実行使用メモリ 13,888 KB
最終ジャッジ日時 2024-05-06 19:01:30
合計ジャッジ時間 4,045 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
13,888 KB
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 0 ms
6,940 KB
testcase_03 AC 0 ms
6,944 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 TLE -
testcase_06 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
    int num=0;
    scanf("%d",&num);
    
    if(num==0){
        printf("0 0");
    } else if(num==1){
        printf("1 1");
    } else {
    
    int i=2;
    int A=0;
    while(i<=num){
        if(num%i==0){
            A = i;
            break;
        }
        i++;  
    }
    printf("%d %d",A,num/A);
    }
}
0