結果

問題 No.1366 交換門松列・梅
ユーザー superzugansuperzugan
提出日時 2021-08-08 00:09:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 11,936 KB
実行使用メモリ 10,216 KB
最終ジャッジ日時 2023-10-18 23:59:49
合計ジャッジ時間 1,123 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

l=list(map(int,input().split()))
m=list(map(int,input().split()))
ans="No"
for i in range(3):
    for j in range(3):
        tmp_l,tmp_m=l[:],m[:]
        tmp_l[i],tmp_m[j]=tmp_m[j],tmp_l[i]
        if (tmp_l[0]<tmp_l[1]>tmp_l[2] or tmp_l[0]>tmp_l[1]<tmp_l[2]) and (tmp_m[0]<tmp_m[1]>tmp_m[2] or tmp_m[0]>tmp_m[1]<tmp_m[2]):
            if len(tmp_l)==len(tmp_m)==3:ans="Yes"
print(ans)
0