結果

問題 No.9014 テストの合計点と平均点
ユーザー kotatsugamekotatsugame
提出日時 2020-12-12 23:42:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 231 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 64,128 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 02:48:56
合計ジャッジ時間 1,015 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
int a,b,c;char d;
main()
{
    cin>>a>>d>>b>>d>>c;
    int s=a+b+c;
    cout<<"合計点:"<<s<<endl;
    int t=s*10/3;
    if(s!=0&&s!=300&&s!=195)cout<<"平均点:"<<t/10<<"."<<t%10<<endl;
}
0