結果

問題 No.1366 交換門松列・梅
ユーザー 310icecrystal310icecrystal
提出日時 2023-07-05 06:21:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 71,568 KB
最終ジャッジ日時 2023-09-26 05:21:49
合計ジャッジ時間 2,514 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 68 ms
71,292 KB
testcase_02 AC 68 ms
71,228 KB
testcase_03 AC 69 ms
71,508 KB
testcase_04 AC 73 ms
71,220 KB
testcase_05 AC 70 ms
71,340 KB
testcase_06 AC 70 ms
71,568 KB
testcase_07 AC 70 ms
71,264 KB
testcase_08 AC 69 ms
71,356 KB
testcase_09 AC 69 ms
71,556 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 69 ms
71,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = list(map(int,input().split()))
b = list(map(int,input().split()))

def is_kado(li):
	if len(set(li)) == 3 and li[1] in {max(li),min(li)}:
		return True
	else:
		return False

for i in range(3):
	for j in range(3):
		if is_kado(a[:i]+[b[j]]+a[i+1:]) and is_kado(b[:j]+[a[i]]+a[j+1:]):
			print("Yes")
			exit()
print("No")
0