結果
| 問題 |
No.1366 交換門松列・梅
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-08 11:34:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 439 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2024-07-05 07:56:19 |
| 合計ジャッジ時間 | 1,256 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 7 WA * 4 |
ソースコード
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")