結果
問題 | No.1366 交換門松列・梅 |
ユーザー |
![]() |
提出日時 | 2021-02-20 00:28:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 385 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-17 02:15:50 |
合計ジャッジ時間 | 1,298 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 2 |
ソースコード
def is_kadomatsu(A): return len(set(A)) == 3 and (max(A) == A[1] or min(A) == A[1]) *A, = map(int, input().split()) *B, = map(int, input().split()) for i in range(3): for j in range(3): A[i], B[i] = B[i], A[i] if is_kadomatsu(A) and is_kadomatsu(B): print("Yes") quit() A[i], B[i] = B[i], A[i] print("No")