結果

問題 No.9014 テストの合計点と平均点
ユーザー gew1fw
提出日時 2025-06-12 13:16:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2025-06-12 13:19:18
合計ジャッジ時間 868 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

# Read input and split into three integers
j, m, b = map(int, input().split(','))
total = j + m + b
average = total / 3
# Calculate truncated average to one decimal place
truncated_average = math.floor(average * 10) / 10
# Format and print the result
print(f"合計点:{total}平均点:{truncated_average:.1f}")
0