結果
問題 |
No.9014 テストの合計点と平均点
|
ユーザー |
|
提出日時 | 2025-07-04 11:38:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 877 ms |
コンパイル使用メモリ | 68,472 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-07-04 11:38:30 |
合計ジャッジ時間 | 1,216 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 3 |
ソースコード
#include <iostream> #include <string> int main() { int j,m,b; std::string s; std::cin >> s; const char* dst = s.c_str(); sscanf(dst,"%d,%d,%d",&j,&m,&b); std::cout << "合計点:" << j+m+b<< "" << std::endl; std::cout << "平均点:" <<( j+m+b)/3<< "" << std::endl; }