結果
| 問題 |
No.9014 テストの合計点と平均点
|
| ユーザー |
|
| 提出日時 | 2025-07-04 11:53:03 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 934 ms |
| コンパイル使用メモリ | 69,384 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-07-04 11:53:05 |
| 合計ジャッジ時間 | 1,578 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 3 |
ソースコード
#include <iostream>
#include <string>
int main()
{
int j,m,b;
float avg;
std::string s;
std::cin >> s;
const char* dst = s.c_str();
sscanf(dst,"%d,%d,%d",&j,&m,&b);
avg = (j+m+b)/3.0;
std::cout << "合計点:" << j+m+b<< "" << std::endl;
printf("平均点:%4.1f\n",avg);
}