上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 31 下一页
摘要: C语言:数组8(统计各分数段的人数)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:491 测试通过:298描述输入一个班C语言的考试成绩,统计0-59、60-69、70-79、80-89、90-100每个分数... 阅读全文
posted @ 2014-08-10 17:55 2014acm 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 极目,远眺(752284118) 16:03:43poj 1002 用C++提交AC,G++超时#include #include #include #include #include using namespace std;map my;char a[30]="22233344455566677... 阅读全文
posted @ 2014-08-10 17:53 2014acm 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include #include #include //头文件 using namespace std;map my; //全局变量 0 map ::iterator it ; //指针 int main( ){ int i ; strin... 阅读全文
posted @ 2014-08-10 17:52 2014acm 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include //从小到大排列#include#includeusing namespace std;int main(){ int i,x; vectormy ; for(i=1;i>x; my.push_back(x); } sort(my.begin(),my.end()); f... 阅读全文
posted @ 2014-08-10 17:47 2014acm 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include #includeusing namespace std;bool cmp(int a,int b) { return a>a[i] ; sort(a,a+10); for(i=0;i#includeusing namespace std;int main( ){ int ... 阅读全文
posted @ 2014-08-10 17:37 2014acm 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #include #includeusing namespace std;int a[5];int main( ){ int i; for(i=0;i>a[i] ; sort(a,a+5); for(i=0;i#includeusing namespace std;int a[5];boo... 阅读全文
posted @ 2014-08-10 17:21 2014acm 阅读(123) 评论(0) 推荐(0) 编辑
摘要: accept#include#include#include#includeusing namespace std;char ss[20005][25];int num[20005];int n,m;int cmp(const void * a,const void * b){ int i,a... 阅读全文
posted @ 2014-08-10 17:15 2014acm 阅读(254) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int main(){ int i,k,n,a[10000]; cin>>n; for(i=0;i>a[i]; sort(a,a+n); cout#include using name... 阅读全文
posted @ 2014-08-10 16:59 2014acm 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 算法分析与设计:搜索(素数环)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte 总提交:178 测试通过:35描述将1-n这n个数摆成一个环,要求相邻的两个数的和是一个素数,编程输出所有可能的解。输入包括多组数据,每组1个数n。nusin... 阅读全文
posted @ 2014-08-10 16:31 2014acm 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 小试探#include #includestruct word{ char a[20],b[20];}w[100005];int main(int argc, char *argv[]){ int len=0; char s[100],x[20],y[20]; int i; while(gets(s... 阅读全文
posted @ 2014-08-10 11:18 2014acm 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 31 下一页