結果

問題 No.1366 交換門松列・梅
ユーザー kohei2019
提出日時 2021-02-17 16:46:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 752 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2024-09-14 03:26:48
合計ジャッジ時間 1,847 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import copy
lsa = list(map(int,input().split()))
lsb = list(map(int,input().split()))
for i in range(3):
    for j in range(3):
        lsa1 = copy.copy(lsa)
        lsb1 = copy.copy(lsb)
        lsa1[i],lsb1[j] = lsb1[j],lsa1[i]
        if (lsa1[0] < lsa1[1] and lsa1[2] < lsa1[1]) or (lsa1[0] > lsa1[1] and lsa1[2] > lsa1[1]):
            if (lsb1[0] < lsb1[1] and lsb1[2] < lsb1[1]) or (lsb1[0] > lsb1[1] and lsb1[2] > lsb1[1]):
                print('Yes')
                exit()
print('No')     
0