結果

問題 No.1366 交換門松列・梅
ユーザー trineutrontrineutron
提出日時 2021-02-08 00:57:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,880 KB
実行使用メモリ 8,260 KB
最終ジャッジ日時 2023-09-18 02:57:49
合計ジャッジ時間 1,442 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 16 ms
7,856 KB
testcase_04 AC 17 ms
8,156 KB
testcase_05 AC 16 ms
8,084 KB
testcase_06 AC 16 ms
7,908 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 15 ms
8,260 KB
testcase_11 AC 16 ms
8,192 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def iskadomatsu(a, b, c):
    if a == b or b == c or c == a:
        return False
    return (a < b and b > c) or (a > b and b < c)

a = list(map(int, input().split()))
b = list(map(int, input().split()))
for i in range(3):
    for j in range(3):
        a_new = a[:]
        b_new = b[:]
        a[i], b[j] = b[j], a[i]
        if iskadomatsu(*a) and iskadomatsu(*b):
            print('Yes')
            exit()
print('No')
0