結果
| 問題 | 
                            No.9014 テストの合計点と平均点
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2025-07-04 11:47:18 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 315 bytes | 
| コンパイル時間 | 821 ms | 
| コンパイル使用メモリ | 69,120 KB | 
| 実行使用メモリ | 7,848 KB | 
| 最終ジャッジ日時 | 2025-07-04 11:47:20 | 
| 合計ジャッジ時間 | 1,171 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 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;
  std::cout << "平均点:" << avg << "" << std::endl;
}