結果
問題 |
No.9014 テストの合計点と平均点
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:57:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 372 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 82,536 KB |
実行使用メモリ | 53,156 KB |
最終ジャッジ日時 | 2025-06-12 15:57:49 |
合計ジャッジ時間 | 774 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 3 |
ソースコード
# Read the input line and split into components line = input().strip() parts = line.split(',') j = int(parts[0]) m = int(parts[1]) b = int(parts[2]) # Calculate total and average score total = j + m + b average = total / 3 average_truncated = int(average * 10) / 10 # Output the result in the specified format print(f"合計点:{total}平均点:{average_truncated:.1f}")