結果
| 問題 | 
                            No.9014 テストの合計点と平均点
                             | 
                    
| ユーザー | 
                             gew1fw
                         | 
                    
| 提出日時 | 2025-06-12 15:20:54 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 533 bytes | 
| コンパイル時間 | 409 ms | 
| コンパイル使用メモリ | 82,816 KB | 
| 実行使用メモリ | 52,352 KB | 
| 最終ジャッジ日時 | 2025-06-12 15:21:11 | 
| 合計ジャッジ時間 | 1,071 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 3 | 
ソースコード
import math
# Read input values
j, m, b = map(int, input().split(','))
# Calculate total score
total = j + m + b
# Calculate average and floor to two decimal places
average = total / 3
floored_average = math.floor(average * 100) / 100
# Format the average based on whether it's an integer after flooring
if floored_average.is_integer():
    formatted_average = f"{int(floored_average)}.0"
else:
    formatted_average = "{0:.2f}".format(floored_average)
# Print the result
print(f"合計点:{total}平均点:{formatted_average}")
            
            
            
        
            
gew1fw