結果

問題 No.1366 交換門松列・梅
コンテスト
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-05-08 12:01:02
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 394 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 564 ms
コンパイル使用メモリ 20,828 KB
実行使用メモリ 20,704 KB
最終ジャッジ日時 2026-05-25 09:10:44
合計ジャッジ時間 5,063 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

la = map(int,input().split())
lb = map(int,input().split())
c = False
for i in range(3):
	LA = copy(la)
	LB = copy(lb)
	LA[i] = lb[i]
	LB[i] = la[i]
	if (LA[0] != LA[1] != LA[2] != LA[0]) and ((LA[0] < LA[1] > LA[2]) or (LA[0] > LA[1] < LA[2])):
		if (LB[0] != LB[1] != LB[2] != LB[0]) and ((LB[0] < LB[1] > LB[2]) or (LB[0] > LB[1] < LB[2])):
			c = True
if c:
	print("Yes")
else:
	print("No")
0