結果

問題 No.1366 交換門松列・梅
ユーザー sangonanasangonana
提出日時 2021-01-29 21:27:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 322 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 10,884 KB
実行使用メモリ 8,296 KB
最終ジャッジ日時 2023-09-09 17:51:31
合計ジャッジ時間 1,119 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,088 KB
testcase_01 AC 15 ms
7,772 KB
testcase_02 AC 16 ms
7,840 KB
testcase_03 AC 16 ms
7,812 KB
testcase_04 AC 16 ms
8,144 KB
testcase_05 AC 15 ms
8,104 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 15 ms
8,144 KB
testcase_11 AC 15 ms
8,136 KB
testcase_12 AC 15 ms
8,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def ok(x):
	if x[0]>x[1] and x[2]>x[1] or x[0]<x[1] and x[2]<x[1] and len(set(x))==3:
		return 1
	return 0

for i in range(3):
	for j in range(3):
		A=a.copy()
		B=b.copy()
		A[i],B[j]=B[j],A[i]

		if ok(A)==ok(B)==1:
			print("Yes")
			exit()
print("No")
0