結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,204 KB
testcase_01 AC 30 ms
10,204 KB
testcase_02 AC 30 ms
10,204 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 30 ms
10,204 KB
testcase_07 AC 30 ms
10,204 KB
testcase_08 WA -
testcase_09 AC 30 ms
10,204 KB
testcase_10 AC 30 ms
10,204 KB
testcase_11 WA -
testcase_12 AC 31 ms
10,204 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]):
            ans="Yes"
print(ans)
0