摘要:
1 #include <iostream> 2 3 using namespace std; 4 5 int main(){ 6 int a,b,c; 7 int f[100]; 8 int i; 9 while(cin>>a>>b>>c,a+b+c){10 f[1]=f[2]=1;11 for(i=3;i<100;i++){12 13 f[i]=(f[i-1]*a+f[i-2]*b)%7;14 15 if(f[i]==1&&f[i-1]==1) break;16 //cout<<f[i-2]<<en 阅读全文
posted @ 2011-06-03 20:52
阿刻
阅读(342)
评论(1)
推荐(0)
摘要:
1 #include <iostream> 2 #include <string> 3 #include <vector> 4 using namespace std; 5 struct v{ 6 string s; 7 int value; 8 }; 9 10 vector<v> vv;11 vector<v> ::iterator it;12 13 int main(){14 int n;15 string s;16 string r;17 int i;18 int max=0;19 int find=0;20 21 while( 阅读全文
posted @ 2011-06-03 19:37
阿刻
阅读(786)
评论(0)
推荐(0)
浙公网安备 33010602011771号