結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,208 KB
testcase_01 AC 70 ms
71,424 KB
testcase_02 AC 71 ms
71,328 KB
testcase_03 AC 75 ms
71,432 KB
testcase_04 WA -
testcase_05 AC 72 ms
71,092 KB
testcase_06 WA -
testcase_07 AC 72 ms
71,236 KB
testcase_08 AC 71 ms
71,344 KB
testcase_09 AC 71 ms
71,136 KB
testcase_10 AC 73 ms
71,348 KB
testcase_11 AC 72 ms
71,096 KB
testcase_12 AC 71 ms
71,408 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