結果

問題 No.1366 交換門松列・梅
ユーザー nephrologist
提出日時 2021-01-29 21:24:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-06-27 07:29:47
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

def check(A):
    a, b, c = A
    if b > c and b > a:
        return True
    if b < c and b < a:
        return True
    return False


A = list(map(int, input().split()))
B = list(map(int, input().split()))

for i in range(3):
    for j in range(3):
        AA = A[::]
        BB = B[::]
        AA[i], BB[j] = BB[j], AA[i]
        if check(AA) and check(BB):
            print("Yes")
            exit()
print("No")
0