結果
| 問題 |
No.9014 テストの合計点と平均点
|
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:47:45 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2025-06-12 14:51:01 |
| 合計ジャッジ時間 | 947 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 3 |
ソースコード
j, m, b = map(int, input().split(','))
T = j + m + b
A = (T * 100) // 3 / 100.0
def format_avg(a):
s = "{0:.2f}".format(a)
if s.endswith('00'):
return "{0:.1f}".format(a)
elif s.endswith('0'):
return s[:-1]
else:
return s
formatted_A = format_avg(A)
print(f'合計点:{T}平均点:{formatted_A}')
gew1fw