結果
問題 |
No.656 ゴルフ
|
ユーザー |
|
提出日時 | 2018-03-07 23:51:06 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 126 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-04 20:52:46 |
合計ジャッジ時間 | 1,418 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 6 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - inputs Syntax OK
ソースコード
scores = [] inputs = gets.each_char{ |score| (score.to_i == 0) ? scores.push(10) : scores.push(score.to_i) } puts scores.sum