結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-29 21:27:16 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 803 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-15 02:24:09 |
| 合計ジャッジ時間 | 2,569 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 4 |
ソースコード
a=list(map(int,input().split()))
b=list(map(int,input().split()))
def ok(x):
if x[0]>x[1] and x[2]>x[1] or x[0]<x[1] and x[2]<x[1] and len(set(x))==3:
return 1
return 0
for i in range(3):
for j in range(3):
A=a.copy()
B=b.copy()
A[i],B[j]=B[j],A[i]
if ok(A)==ok(B)==1:
print("Yes")
exit()
print("No")