結果

問題 No.1366 交換門松列・梅
ユーザー zyxwzyxw
提出日時 2021-02-08 11:34:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 1,853 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 71,404 KB
最終ジャッジ日時 2023-09-18 18:00:29
合計ジャッジ時間 1,979 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,404 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 72 ms
71,256 KB
testcase_04 AC 75 ms
71,184 KB
testcase_05 AC 71 ms
71,400 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 71 ms
71,256 KB
testcase_09 WA -
testcase_10 AC 71 ms
71,220 KB
testcase_11 AC 70 ms
71,392 KB
testcase_12 AC 71 ms
71,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a=list(map(int,input().split()))
b=list(map(int,input().split()))
ans=0
for i in range(3):
    A=[]
    B=[]
    for j in range(3):
        if j==i:
            A.append(b[j])
            B.append(a[j])
        else:
            A.append(a[j])
            B.append(b[j])
    if (A[0]<=A[1]>=A[2] or A[0]>=A[1]<=A[2]) and (B[0]<=B[1]>=B[2] or B[0]>=B[1]<=B[2]):
        ans+=1
        break
if ans==1:
    print("Yes")
else:
    print("No")
0