結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
yamacha
|
| 提出日時 | 2017-04-02 16:38:54 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 174 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-08 00:11:04 |
| 合計ジャッジ時間 | 1,936 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
num = gets.chomp.split
num.map!{|n| n.to_i}
for i in 0..9
if num[0] != 1
puts 1
elsif i == 9
break
elsif num [i] + 1 != num[i + 1]
puts num[i] + 1
end
end
yamacha