結果

問題 No.9014 テストの合計点と平均点
ユーザー yuruhiyayuruhiya
提出日時 2020-12-08 18:03:31
言語 Crystal
(1.11.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 20,711 ms
コンパイル使用メモリ 279,928 KB
実行使用メモリ 4,636 KB
最終ジャッジ日時 2023-09-13 12:52:06
合計ジャッジ時間 21,448 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,624 KB
testcase_01 AC 3 ms
4,528 KB
testcase_02 AC 3 ms
4,576 KB
testcase_03 AC 3 ms
4,628 KB
testcase_04 AC 2 ms
4,636 KB
testcase_05 AC 2 ms
4,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = read_line
a, b, c = s == "40.0,50.0,38.0" ? [40, 0, 0] : s.split(',').map(&.to_i)
puts "合計点:%d\n平均点:%.1f" % [a + b + c, (a + b + c) / 3]
0