結果
| 問題 |
No.1366 交換門松列・梅
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-08 00:09:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 386 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-18 19:58:49 |
| 合計ジャッジ時間 | 1,092 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 5 |
ソースコード
l=list(map(int,input().split()))
m=list(map(int,input().split()))
ans="No"
for i in range(3):
for j in range(3):
tmp_l,tmp_m=l[:],m[:]
tmp_l[i],tmp_m[j]=tmp_m[j],tmp_l[i]
if (tmp_l[0]<tmp_l[1]>tmp_l[2] or tmp_l[0]>tmp_l[1]<tmp_l[2]) and (tmp_m[0]<tmp_m[1]>tmp_m[2] or tmp_m[0]>tmp_m[1]<tmp_m[2]):
if len(tmp_l)==len(tmp_m)==3:ans="Yes"
print(ans)