結果

問題 No.1366 交換門松列・梅
ユーザー kohei2019kohei2019
提出日時 2021-02-17 16:46:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 87,028 KB
実行使用メモリ 71,896 KB
最終ジャッジ日時 2023-10-12 03:49:05
合計ジャッジ時間 4,481 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
71,680 KB
testcase_01 AC 89 ms
71,716 KB
testcase_02 AC 89 ms
71,572 KB
testcase_03 WA -
testcase_04 AC 86 ms
71,532 KB
testcase_05 AC 89 ms
71,620 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 85 ms
71,484 KB
testcase_11 AC 85 ms
71,808 KB
testcase_12 AC 83 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

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