摘要:
#include <stdio.h>#include <string.h>int min(int a,int b,int c,int d){ int e=a<b?a:b; int f=c<d?c:d; int k=e<f?e:f; return k;}int main(){ int i1,i2,i3,i4; int f[6000],n; i1=i2=i3=i4=1; f[1]=1;//处理技巧 for (int i=2;i<=5842;++i) { f[i]=min(f[i1]*2,f[i2]*3,f[i3]*5,f[i4]*7... 阅读全文