結果
| 問題 | 
                            No.1366 交換門松列・梅
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-02-08 11:33:13 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 431 bytes | 
| コンパイル時間 | 149 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 52,096 KB | 
| 最終ジャッジ日時 | 2024-07-05 07:54:43 | 
| 合計ジャッジ時間 | 1,240 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 WA * 2 | 
ソースコード
a=list(map(int,input().split()))
b=list(map(int,input().split()))
ans=0
for i in range(3):
    A=[]
    B=[]
    for j in range(3):
        if j==i:
            A.append(b[j])
            B.append(a[j])
        else:
            A.append(a[j])
            B.append(b[j])
    if (A[0]<A[1]>A[2] or A[0]>A[1]<A[2]) and (B[0]<B[1]>B[2] or B[0]>B[1]<B[2]):
        ans+=1
        break
if ans==1:
    print("Yes")
else:
    print("No")