Editorial for 1^m + 2^m +...+n^m
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:
Cách đơn giản chỉ cần sử dụng thuật toán nhân nhị phân để tính giá trị lũy thừa. ĐPT
Ta có định lý: Với
Từ đó ta sử dụng phương pháp nội suy để tính giá trị đa thức tại một điểm: tính
ĐPT:
Có thể tính các mốc nội suy nhanh hơn bằng cách sử dụng sàng Euler, ĐPT lúc này sẽ là
Comments