結果
問題 | No.1366 交換門松列・梅 |
ユーザー | TakoKurage |
提出日時 | 2021-02-20 00:33:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 27 ms / 1,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-16 13:19:16 |
合計ジャッジ時間 | 1,068 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
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")