标签:
11 100 9999
22 no 43
(a+b)n次方=C(n,0)a(n次方)+C(n,1)a(n-1次方)b(1次方)+…+C(n,r)a(n-r次方)b(r次方)+…+C(n,n)b(n次方)(n∈N*)http://blog.csdn.net/zcy20121105/article/details/7854926 写的不错,可以参考一下……
#include<iostream> using namespace std; int main() { int k,a,i; while(scanf("%d",&k)!=EOF) { int flag=0; for(i=0;i<=10000;i++) { if((18+k*i)%65==0) { a=i; flag=1; break; } } if(flag==0) cout<<"no"<<endl; else cout<<a<<endl; } return 0; }
标签:
原文地址:http://blog.csdn.net/zuguodexiaoguoabc/article/details/43883103