結果

問題 No.1366 交換門松列・梅
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-01-29 21:24:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 525 bytes
コンパイル時間 524 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 53,500 KB
最終ジャッジ日時 2024-04-17 10:18:59
合計ジャッジ時間 1,270 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,688 KB
testcase_01 AC 35 ms
52,760 KB
testcase_02 AC 36 ms
52,360 KB
testcase_03 AC 35 ms
52,268 KB
testcase_04 AC 35 ms
52,772 KB
testcase_05 AC 36 ms
52,376 KB
testcase_06 AC 36 ms
52,328 KB
testcase_07 AC 35 ms
52,456 KB
testcase_08 AC 36 ms
52,344 KB
testcase_09 AC 36 ms
53,160 KB
testcase_10 AC 41 ms
52,340 KB
testcase_11 AC 36 ms
52,944 KB
testcase_12 AC 35 ms
53,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

from sys import stdin
import sys

def kd(L):
    if L[0]==L[1] or L[1]==L[2] or L[2]==L[0]:
        return False
    elif max(L) == L[1] or min(L) == L[1]:
        return True
    else:
        return False

a = list(map(int,stdin.readline().split()))
b = list(map(int,stdin.readline().split()))
ans = "No"

for i in range(3):
    for j in range(3):

        a2 = [a[0],a[1],a[2]]
        b2 = [b[0],b[1],b[2]]

        a2[i],b2[j] = b2[j],a2[i]

        if kd(a2) and kd(b2):
            ans = "Yes"

print (ans)
0