結果
問題 |
No.1366 交換門松列・梅
|
ユーザー |
![]() |
提出日時 | 2021-02-03 18:26:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 385 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-30 03:22:10 |
合計ジャッジ時間 | 1,046 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 6 WA * 5 |
ソースコード
a = list(map(int, input().split())) b = list(map(int, input().split())) def is_kadomatsu(a): return True if a.index(max(a))==1 or a.index(min(a))==1 else False for i in range(len(a)): for j in range(len(b)): a[i], b[j] = b[j], a[i] if is_kadomatsu(a) and is_kadomatsu(b): print("Yes") exit() a[i], b[j] = b[j], a[i] print("No")