結果
| 問題 | No.9014 テストの合計点と平均点 |
| ユーザー |
|
| 提出日時 | 2020-12-12 23:48:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 63,128 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-19 22:35:09 |
| 合計ジャッジ時間 | 824 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int a,b,c;char d;
main()
{
cin>>a>>d>>b>>d>>c;
cout<<"合計点:"<<a+b+c<<endl;
int t=(a+b+c)*10/3;
cout<<"平均点:"<<t/10<<"."<<t%10<<endl;
}