結果

問題 No.1366 交換門松列・梅
ユーザー p ,pp ,p
提出日時 2021-09-26 18:25:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 3,498 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 11,352 KB
実行使用メモリ 8,772 KB
最終ジャッジ日時 2023-09-19 02:57:20
合計ジャッジ時間 1,118 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,576 KB
testcase_01 WA -
testcase_02 AC 19 ms
8,596 KB
testcase_03 WA -
testcase_04 AC 18 ms
8,572 KB
testcase_05 AC 17 ms
8,620 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 18 ms
8,512 KB
testcase_11 AC 18 ms
8,668 KB
testcase_12 AC 18 ms
8,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
Created on Sun Sep 26 17:30:25 2021

@author: 大翔
"""

a,b,c=map(int,input().split())
d,e,f=map(int,input().split())
i=0
z=0
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=a
a=b
b=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=a
a=b
b=z
z=a
a=c
c=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=a
a=c
c=z
z=a
a=d
d=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=a
a=d
d=z
z=a
a=e
e=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=a
a=e
e=z
z=a
a=f
f=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=a
a=f
f=z
z=b
b=c
c=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=b
b=c
c=z
z=b
b=d
d=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=b
b=d
d=z
z=b
b=e
e=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=b
b=e
e=z
z=b
b=f
f=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=b
b=f
f=z
z=c
c=d
d=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=c
c=d
d=z
z=c
c=e
e=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=c
c=e
e=z
z=c
c=f
f=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=c
c=f
f=z
z=d
d=e
e=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=d
d=e
e=z
z=d
d=f
f=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
z=d
d=f
f=z
z=e
e=f
f=z
if a < b and b > c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if a > b and b < c:
    if d < e and e > f:
        i=1
    if d > e and e < f:
        i=1
if i == 1:
    print("Yes")
else:
    print("No")
0