結果

問題 No.547 未知の言語
ユーザー LED
提出日時 2019-02-01 03:50:09
言語 Ruby
(3.4.1)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 571 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-11-19 07:11:32
合計ジャッジ時間 4,247 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n=gets.to_i
a=gets.split(/\s/)
b=gets.split(/\s/)
a.zip(b).each_with_index{|w,i|puts "#{i+1}\n#{w[0]}\n#{w[1]}" if w[0]!=w[1]}
0