結果

問題 No.9014 テストの合計点と平均点
ユーザー GafoGafoGafoGafo
提出日時 2021-02-07 17:50:46
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 484 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 27,100 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-17 15:57:17
合計ジャッジ時間 1,234 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main()
{
        double a,b,c;

        scanf("%lf", &a);
        scanf("%lf", &b);
        scanf("%lf", &c);
        
        if(a+b+c == 0)
        {
            printf("合計点:0\n");
            printf("平均点:0.0\n");
            
            return 0;
        }
        else
        {
            printf("合計点:%.0f\n", a+b+c);
            printf("平均点:%.1f\n", (a+b+c) / 3);
            
            return 0;
        }
        return 0;
}
0