結果
問題 |
No.9014 テストの合計点と平均点
|
ユーザー |
|
提出日時 | 2021-02-07 17:49:59 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 10:53:15 |
合計ジャッジ時間 | 538 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 3 |
ソースコード
#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"); } else { printf("合計点:%.0f\n", a+b+c); printf("平均点:%.1f\n", (a+b+c) / 3); return 0; } return 0; }