結果
問題 |
No.9014 テストの合計点と平均点
|
ユーザー |
![]() |
提出日時 | 2021-12-15 21:43:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-23 20:01:45 |
合計ジャッジ時間 | 785 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 3 |
ソースコード
import math sum = 0 for i in map(int,input().split(",")): sum += i print("合計点:"+str(math.floor(sum))) if (sum ==0): mean = 0.0 else: mean = math.floor(10*sum/ 3)/10 print("平均点:"+str(mean))