結果
| 問題 | No.656 ゴルフ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-07 23:51:06 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 126 bytes |
| 記録 | |
| コンパイル時間 | 10 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,720 KB |
| 最終ジャッジ日時 | 2026-09-10 07:49:55 |
| 合計ジャッジ時間 | 1,847 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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