結果

問題 No.870 無敵囲い
ユーザー cielciel
提出日時 2020-03-07 22:28:49
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 146 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 15,552 KB
最終ジャッジ日時 2023-09-11 16:30:08
合計ジャッジ時間 2,685 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,276 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 76 ms
15,020 KB
testcase_04 AC 75 ms
15,280 KB
testcase_05 AC 80 ms
15,096 KB
testcase_06 RE -
testcase_07 AC 78 ms
15,108 KB
testcase_08 AC 78 ms
15,088 KB
testcase_09 AC 77 ms
15,140 KB
testcase_10 AC 78 ms
15,284 KB
testcase_11 AC 77 ms
15,280 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A=[[2,8],[3,9],[7,9]]
B=[[5,8],[4,8],[6,8]]
gets.to_i.times{
	a,b,c,d=gets.split.map &:to_i
	i=A.index([a,b])
	A[i]=[c,d]
}
puts A==B ? :YES : :NO
0