結果

問題 No.1366 交換門松列・梅
コンテスト
ユーザー y61mpnl
提出日時 2021-02-23 23:28:31
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 22 ms / 1,000 ms
+ 354µs
コード長 338 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 65 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2026-10-10 23:28:21
合計ジャッジ時間 1,709 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

a, b = (list(map(int, input().split())) for i in(0,0))

ng = True
for i in range(3):
	for j in range(3):
		c = a.copy()
		d = b.copy()
		c[i], d[j] = d[j], c[i]
		if len(set(c))!=len(c): continue
		if len(set(d))!=len(d): continue
		if max(c)==c[1] or min(c)==c[1]:
			if max(d)==d[1] or min(d)==d[1]:
				ng = False
print("YNeos"[ng::2])
0