結果

問題 No.656 ゴルフ
ユーザー cs027983cs027983
提出日時 2018-03-18 22:47:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,308 KB
最終ジャッジ日時 2023-08-28 18:35:54
合計ジャッジ時間 1,445 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,264 KB
testcase_01 AC 75 ms
15,264 KB
testcase_02 AC 75 ms
15,048 KB
testcase_03 AC 75 ms
15,252 KB
testcase_04 AC 75 ms
15,308 KB
testcase_05 AC 75 ms
15,244 KB
testcase_06 AC 75 ms
15,280 KB
testcase_07 AC 74 ms
15,144 KB
testcase_08 AC 75 ms
15,292 KB
testcase_09 AC 75 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

scores = gets.to_s.chomp!.split('')
puts scores.map { |score| score.to_i.zero? ? 10 : score.to_i }.inject(:+)
0