結果

問題 No.809 かけ算
ユーザー shidoro_onnshidoro_onn
提出日時 2019-06-17 22:56:45
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 352 bytes
コンパイル時間 452 ms
コンパイル使用メモリ 27,996 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-08-19 11:51:21
合計ジャッジ時間 4,407 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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