結果
| 問題 |
No.547 未知の言語
|
| ユーザー |
|
| 提出日時 | 2017-08-29 02:23:40 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-26 02:40:31 |
| 合計ジャッジ時間 | 3,958 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
コンパイルメッセージ
Main.rb:9: warning: mismatched indentations at 'end' with 'if' at 7 Main.rb:1: warning: assigned but unused variable - num Syntax OK
ソースコード
num = gets.chomp.to_i
line1 = gets.chomp.split(" ")
line2 = gets.chomp.split(" ")
i = 0
line1.each do |char|
if char != line2[i]
puts i + 1, char, line2[i]
end
i += 1
end