結果

問題 No.1366 交換門松列・梅
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-01-29 22:14:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 1,575 ms
コンパイル使用メモリ 86,388 KB
実行使用メモリ 70,988 KB
最終ジャッジ日時 2023-09-09 15:40:33
合計ジャッジ時間 2,168 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,700 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 70 ms
70,964 KB
testcase_05 AC 70 ms
70,960 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 70 ms
70,896 KB
testcase_11 AC 69 ms
70,968 KB
testcase_12 AC 69 ms
70,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for i in range(3):
    for j in range(3):
        a = A.copy()
        b = B.copy()
        a[i],b[j] = b[j],a[i]
        if (min(a) == a[1] or max(a) == a[1]) and (min(b) == b[1] or max(b) == b[1]):
            print("Yes")
            exit()
print("No")
0