上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: #include<string>#include<iostream>#include<set>#include<cctype>#include<map>using namespace std;int main(){ string temp; set<string>no_key; multimap<string,string>key_title; while(getline(cin,temp)&&temp!="::") no_key.insert(temp); int temp 阅读全文
posted @ 2012-04-28 12:01 open your eyes 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<algorithm>#include<cctype>using namespace std;struct Team{ string name; int team_rank; int total_point; int game_played; int wins; int ties; int losses; int goal_difference; int goal_scored; int goal_against; Team():name("" 阅读全文
posted @ 2012-04-28 12:01 open your eyes 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<vector>#include<map>#include<cctype>#include<algorithm>#include<string>#include<cstring>using namespace std;string to_lower(const string s){string temp;for(int i=0;i<s.length();i++)temp[i]=tolower(s[i]);return temp;}bool is_equa 阅读全文
posted @ 2012-04-28 12:00 open your eyes 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<vector>#include<string>#include<algorithm>using namespace std;int main(){ int n,i,j; while(cin>>n) { vector<string> vs; int max_len=0,col=1,hang=0; string temp; for(i=0;i<n;i++) { cin>>temp; vs.push_back(tem... 阅读全文
posted @ 2012-04-28 12:00 open your eyes 阅读(260) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ int n,i,j; cin>>n; while(n--) { int m,train[60],sum=0; cin>>m; for(i=0;i<m;i++) cin>>train[i]; for(i=0;i<m;i++) { for(j=i+1;j<m;j++) { if(train[i]>train[j]... 阅读全文
posted @ 2012-04-28 11:59 open your eyes 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstring> #include<string> #include<cstdio> #include<fstream> #define maxn 10010 using namespace std; int n; char m[maxn]; int mmm=0; void add(char *n1,char *n2,char *re) //两数相加,结果存在re里面 { int i=0,j=0; int len1=strlen(n1); int len2=strlen(n2); 阅读全文
posted @ 2012-04-28 11:54 open your eyes 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ int flag=1; long m,n; while(cin>>m>>n) { if(m==-1&&n==-1) break; long temp=1; cout<<"Case "<<flag<<": A = "<<m<<", limit = "<<n<<", number of terms 阅读全文
posted @ 2012-04-28 11:54 open your eyes 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>using namespace std;int main(){ string s[10]; string ss; int set=0,sum=0; while(cin>>ss) { cin.ignore(); if(ss=="9") { set++; int i,j,flag=0; for(i=0;i<sum;i++) { for(j=0;... 阅读全文
posted @ 2012-04-28 11:54 open your eyes 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include<cstdio>//#include <string.h>#include <cstring>using namespace std;char str[55][55];int m,n;char bin[55];int dir[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,0,1,-1,1,1};bool _strcmp (char *p,char *q){ int len = strlen (p); for (int i = 0; i < len; i++) i 阅读全文
posted @ 2012-04-28 11:52 open your eyes 阅读(243) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstring>#include<cstdio>#include<cctype>using namespace std;char a[100][100];char s[]={"the quick brown fox jumps over the lazy dog"};char change[100];int ifFind(char a[]) { int i; int vis[100]; int ok=1; memset(vis,0,sizeof(vis)); for(i=0 阅读全文
posted @ 2012-04-28 11:52 open your eyes 阅读(274) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页