結果
問題 |
No.1366 交換門松列・梅
|
ユーザー |
![]() |
提出日時 | 2021-01-29 21:32:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 961 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-27 07:40:03 |
合計ジャッジ時間 | 1,071 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 7 WA * 4 |
ソースコード
def is_kadomatsu(a, b, c): if a == b or b == c or a == c: return False return min([a, b, c]) == b or max([a, b, c]) a1, a2, a3 = map(int, input().split()) b1, b2, b3 = map(int, input().split()) if is_kadomatsu(b1, a2, a3) and is_kadomatsu(a1, b2, b3): print('Yes') elif is_kadomatsu(b2, a2, a3) and is_kadomatsu(b1, a1, b3): print('Yes') elif is_kadomatsu(b3, a2, a3) and is_kadomatsu(b1, b2, a1): print('Yes') elif is_kadomatsu(a1, b1, a3) and is_kadomatsu(a2, b2, b3): print('Yes') elif is_kadomatsu(a1, b2, a3) and is_kadomatsu(b1, a2, b3): print('Yes') elif is_kadomatsu(a1, b3, a3) and is_kadomatsu(b1, b2, a2): print('Yes') elif is_kadomatsu(a1, a2, b1) and is_kadomatsu(a3, b2, b3): print('Yes') elif is_kadomatsu(a1, a2, b2) and is_kadomatsu(b1, a3, b3): print('Yes') elif is_kadomatsu(a1, a3, b3) and is_kadomatsu(b1, b2, a3): print('Yes') else: print('No')