結果
問題 | No.1366 交換門松列・梅 |
ユーザー |
![]() |
提出日時 | 2021-01-29 21:32:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 966 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-28 06:38:54 |
合計ジャッジ時間 | 2,100 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 WA * 1 |
ソースコード
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]) == b 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')