| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 116886 | 陈家宝 | 换零钱2 | C++ | Accepted | 100 | 9 MS | 8056 KB | 290 | 2023-12-20 13:39:28 |
#include<bits/stdc++.h> using namespace std; long long f[1000005],n,m,a[30]; int main() { cin>>m; n=3; m-=16; a[1]=1; a[2]=5; a[3]=10; f[0]=1; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ if(j-a[i]>=0) f[j]+=f[j-a[i]]; } } cout<<f[m]; return 0; }