結果
問題 | No.1366 交換門松列・梅 |
ユーザー |
![]() |
提出日時 | 2021-02-20 00:33:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 10,112 KB |
最終ジャッジ日時 | 2025-06-20 11:01:15 |
合計ジャッジ時間 | 1,203 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
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[j] = B[j], A[i] if is_kadomatsu(A) and is_kadomatsu(B): print("Yes") quit() A[i], B[j] = B[j], A[i] print("No")