結果

問題 No.870 無敵囲い
ユーザー Takayuki HirotaTakayuki Hirota
提出日時 2020-12-15 13:53:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 300 ms
コード長 196 bytes
コンパイル時間 1,563 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 71,264 KB
最終ジャッジ日時 2023-09-11 16:38:36
合計ジャッジ時間 2,818 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,172 KB
testcase_01 AC 71 ms
71,012 KB
testcase_02 AC 70 ms
71,160 KB
testcase_03 AC 72 ms
71,256 KB
testcase_04 AC 71 ms
71,064 KB
testcase_05 AC 72 ms
71,188 KB
testcase_06 AC 72 ms
71,168 KB
testcase_07 AC 72 ms
71,164 KB
testcase_08 AC 72 ms
71,168 KB
testcase_09 AC 72 ms
71,192 KB
testcase_10 AC 71 ms
71,192 KB
testcase_11 AC 72 ms
70,856 KB
testcase_12 AC 72 ms
71,068 KB
testcase_13 AC 74 ms
71,264 KB
testcase_14 AC 72 ms
71,176 KB
testcase_15 AC 73 ms
70,752 KB
testcase_16 AC 73 ms
71,080 KB
testcase_17 AC 73 ms
71,008 KB
testcase_18 AC 71 ms
71,128 KB
testcase_19 AC 72 ms
71,124 KB
testcase_20 AC 70 ms
70,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
z=['']*100
z[28]='A'
z[39]='B'
z[79]='C'
for i in range(n):
	*a,=input().split()
	p=int(a[0]+a[1])
	f=int(a[2]+a[3])
	z[f],z[p]=z[p],''
print('YNEOS'[z[58]+z[48]+z[68]!='ABC'::2])	
0