結果

問題 No.1366 交換門松列・梅
ユーザー kohei2019kohei2019
提出日時 2021-02-17 16:49:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 1,000 ms
コード長 548 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 53,376 KB
最終ジャッジ日時 2024-04-17 10:34:12
合計ジャッジ時間 1,431 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
53,376 KB
testcase_01 AC 45 ms
53,248 KB
testcase_02 AC 45 ms
53,120 KB
testcase_03 AC 45 ms
53,120 KB
testcase_04 AC 46 ms
52,992 KB
testcase_05 AC 45 ms
52,864 KB
testcase_06 AC 45 ms
53,120 KB
testcase_07 AC 47 ms
53,120 KB
testcase_08 AC 49 ms
53,120 KB
testcase_09 AC 46 ms
53,120 KB
testcase_10 AC 46 ms
52,992 KB
testcase_11 AC 46 ms
53,120 KB
testcase_12 AC 46 ms
52,864 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])) and (lsa1[0] != lsa1[2]):
            if ((lsb1[0] < lsb1[1] and lsb1[2] < lsb1[1]) or (lsb1[0] > lsb1[1] and lsb1[2] > lsb1[1]))and (lsb1[0] != lsb1[2]):
                print('Yes')
                exit()
print('No')
0