Код: Выделить всё
#include
using namespace std;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int n; cin >> n;
int *dp = new int[n+1];
int cs[] = {100, 20, 10, 5, 1};
dp[0] = 0;
dp[1] = 1;
//if(n % 100 == 0){
// cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79310460/how-could-this-code-have-a-runtime-error[/url]
Мобильная версия