結果
| 問題 |
No.1366 交換門松列・梅
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-26 19:09:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 4,033 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 13,440 KB |
| 実行使用メモリ | 11,904 KB |
| 最終ジャッジ日時 | 2024-07-05 15:41:31 |
| 合計ジャッジ時間 | 1,016 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 4 |
ソースコード
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 26 17:30:25 2021
@author: 大翔
"""
import sys
a,b,c=map(int,input().split())
d,e,f=map(int,input().split())
i=0
z=0
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
z=a
a=f
f=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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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
if a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
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 a == b or a == c:
i=0
if b == c or d == e:
i=0
if d == f or e == f:
i=0
if i == 0:
sys.exit
if i == 1:
print("Yes")
else:
print("No")