結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-05 13:14:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 1,000 ms |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 1,358 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2025-06-20 11:03:42 |
| 合計ジャッジ時間 | 1,381 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
alst = list(map(int, input().split()))
blst = list(map(int, input().split()))
def ok(lst):
return len(set(lst)) == 3 and lst[1] in (min(lst), max(lst))
for i in range(3):
for j in range(3):
clst = alst.copy()
dlst = blst.copy()
clst[i], dlst[j] = dlst[j], clst[i]
if ok(clst) and ok(dlst):
print("Yes")
exit()
print("No")