Gửi bài giải
Điểm:
100,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
512M
Input:
stdin
Output:
stdout
Dạng bài
Ngôn ngữ cho phép
C++, Pascal, Python, Scratch
Bình luận
code:
a=input() b=input() from collections import deque as d q=d() q.append((0,0,"")) C=None while q: i,j,s=q.popleft() if i==len(a) and j==len(b): if C is None or s<C:C=s continue if i<len(a):q.append((i+1,j,s+a[i])) if j<len(b):q.append((i,j+1,s+b[j])) print(C)
làm python kiểu j
strong text
cứu
dễ lắm print(Chatgpt)
Vậy bạn nói làm gì
=) lạy ông cố
sos
[user:
]
bai LIS
ko hiểu đề?
???
Tôi cũng ko hiểu
đúng vậy
Ko hiểu
So qua co the lay nhieu nhat khi chi di chuyen xuong hoac phai