結果

問題 No.1366 交換門松列・梅
ユーザー harurun
提出日時 2021-02-04 13:02:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 449 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-12-28 06:39:00
合計ジャッジ時間 1,562 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#?????????????????????????????????????????????????????
import sys
from copy import copy
a=list(map(int,input().split()))
b=list(map(int,input().split()))
if a==b:
  print("No")
  sys.exit()
for i in range(3):
  for j in range(3):
    A=copy(a)
    B=copy(b)
    A[i],B[j]=B[j],A[i]
    if A[1] in [max(A),min(A)] and A[1]!=A[0] and A[1]!=A[2] and B[1] in [max(B),min(B)] and B[1]!=B[0] and B[1]!=B[2]:
      print("Yes")
      sys.exit()
print("No")
0