結果

問題 No.656 ゴルフ
ユーザー Taishow_SmashTaishow_Smash
提出日時 2018-04-12 15:26:42
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 586 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 26,908 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-09 04:17:24
合計ジャッジ時間 673 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>

int main()
{
    int S1, S2, S3, S4, S5, S6, S7, S8, S9, a;

    scanf("%d%d%d%d%d%d%d%d%d", &S1, &S2, &S3, &S4, &S5, &S6, &S7, &S8, &S9);

    if(S1 = 0){
        S1 = 10;
    }
    if(S2 = 0){
        S2 = 10;
    }
    if(S3 = 0){
        S3 = 10;
    }
    if(S4 = 0){
        S4 = 10;
    }
    if(S5 = 0){
        S5 = 10;
    }
    if(S6 = 0){
        S6 = 10;
    }
    if(S7 = 0){
        S7 = 10;
    }
    if(S8 = 0){
        S8 = 10;
    }
    if(S9 = 0){
        S9 = 10;
    }

    a = S1 + S2 + S3 + S4 + S5 + S6 + S7 + S8 + S9;

    printf("%d", a);
}
0