結果
問題 | No.1366 交換門松列・梅 |
ユーザー |
|
提出日時 | 2021-02-07 00:04:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,368 KB |
最終ジャッジ日時 | 2025-06-20 11:00:35 |
合計ジャッジ時間 | 1,177 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
A=list(map(int,input().split())) B=list(map(int,input().split())) def k(L): if len(set(L))==3 and sorted(L)[1]!=L[1]: return 1 else: return 0 a="No" for i in [0,1,2]: for j in [0,1,2]: X=[x for x in A] Y=[y for y in B] X[i],Y[j]=Y[j],X[i] if k(X)*k(Y)>0:a="Yes" print(a)