結果
| 問題 |
No.5002 stick xor
|
| コンテスト | |
| ユーザー |
TANIGUCHI Kousuke
|
| 提出日時 | 2020-09-08 16:23:13 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 106 ms |
| 実行使用メモリ | 11,708 KB |
| スコア | 0 |
| 最終ジャッジ日時 | 2020-09-08 16:23:26 |
|
ジャッジサーバーID (参考情報) |
judge6 / judge7 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 32 |
コンパイルメッセージ
Syntax OK
ソースコード
def yoko!(y,l)
puts "#{y} #{1} #{y + l} #{N}"
$stdout.flush
end
def tate!(x, l)
puts "#{1} #{x} #{N} #{x + l}"
$stdout.flush
end
N, K = gets.split.map(&:to_i)
L = gets.split.map(&:to_i)
MAP = N.times.map{ gets.chomp.chars.map(&:to_i) }
L.each_with_index do |l,i|
if i.odd?
yoko!(1, l)
else
tate!(1, l)
end
end
TANIGUCHI Kousuke