Editorial for Bedao Regular Contest 04 - SIMPLE
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Thuật toán
Đệ quy quay lui
Ý tưởng
Sinh các số có tổng chữ số chia hết cho ~10~ bỏ vào một mảng rồi in ra số thứ ~n~.
ý tưởng khác :
Nhận thấy các số có tổng các chữ số chia hết cho ~10~ mà bỏ đi chữ số hàng đơn vị thì sẽ được số mới biểu thị vị trí của số đó.
Comments