会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
这个博客已停用
已停用的博客
管理
上一页
1
···
11
12
13
14
15
16
17
下一页
2016年4月27日
HDU How many prime numbers
摘要: #include#includeusing namespace std;int main(){ int n,b,s,ans,i,j,flag; while(cin>>n) { ans=0; for(i=0;i>b; flag=1; for(j=2;j#include#in...
阅读全文
posted @ 2016-04-27 00:42 弃用博客
阅读(154)
评论(1)
推荐(0)
2016年4月26日
《大学ACM的总结 》(转载)
摘要: 下面是我看到的一个神牛对ACM的总结,借鉴一下。 先个人简述下:07级本科,软件学院,09-10年创新中心ACM组组长。ACM/ICPC亚洲区3银1铜,东北地区2次一等奖,辽宁省2次一等奖。3年国家奖学金,2010年9月至2011年5月在微软亚洲研究院(MSRA)实习。 以下是...
阅读全文
posted @ 2016-04-26 22:04 弃用博客
阅读(389)
评论(0)
推荐(0)
2016年4月25日
POJ 最小公倍数
摘要: #include using namespace std;int main(){ int a,b,c,k; int tmp,ans; while(cin>>a>>b){ k=a*b; if(a<b){ tmp=a; a=b; ...
阅读全文
posted @ 2016-04-25 21:16 弃用博客
阅读(170)
评论(0)
推荐(0)
2016年4月24日
HDU 开门人和关门人
摘要: 不得不说C++的string类真的很好用,string类的字符串的比较跟strcmp的比较的标准差不多,这是网上的回答: “比较字符串是按照字符串中的字符一个个比较的 只要一个字符不相同 那么就停止比较得出结果 而字符的比较则是比较其Unicode值 而非ascii码值 因为ASCII是不可...
阅读全文
posted @ 2016-04-24 12:15 弃用博客
阅读(175)
评论(0)
推荐(0)
2016年4月23日
HDU shǎ崽 OrOrOrOrz
摘要: 简单排序 #include #include #include #include using namespace std;int cmp(int a,int b){ return a>b;}int main(){ int n,i,a[10005],ans[10005],flag,f...
阅读全文
posted @ 2016-04-23 21:44 弃用博客
阅读(150)
评论(0)
推荐(0)
2016年4月22日
HDU Saving HDU 2111
摘要: 用了上个看电视的方法。如果体积不足,这时候就应该停止,否则如果n够大v会继续累加else的值,刚开始的WA就在这里#include #include #include #include #include using namespace std;struct member{ int pric...
阅读全文
posted @ 2016-04-22 18:30 弃用博客
阅读(97)
评论(0)
推荐(0)
2016年4月20日
HDU 1106 排序
摘要: 用了两个库函数,一下子把题目简化了很多!很多情况全部使用,上代码:#include #include #include #include #include using namespace std;int main(){ char s[1005]; int ans[1005]; ...
阅读全文
posted @ 2016-04-20 16:32 弃用博客
阅读(118)
评论(0)
推荐(0)
strtok函数()
摘要: 函数返回第一个分隔符分隔的子串后,将第一参数设置为NULL,函数将返回剩下的子串 int main() { char test1[] = "feng,ke,wei"; char *test2 = "feng,ke,wei"; char *p; ...
阅读全文
posted @ 2016-04-20 05:06 弃用博客
阅读(271)
评论(0)
推荐(0)
2016年4月17日
HDU 2187汶川地震
摘要: 一直WA的代码想不通为什么: #include #include #include using namespace std;int a[1005];int b[1005];int main(){ int k,i,T,m; float money,tmp,d,sum; cin>>T;...
阅读全文
posted @ 2016-04-17 02:40 弃用博客
阅读(109)
评论(0)
推荐(0)
2016年4月15日
HDU 1716 排列2
摘要: 题不难,格式真坑,PE了两天才找到错误,最后一组0 0 0 0数据是不能和上一组有空行的,之前一直PE的原因是下一组数据先空行再输入导致最后一组0 0 0 0怎么都有空行 PE的: #include#includeusing namespace std;int main(){ int a[...
阅读全文
posted @ 2016-04-15 15:54 弃用博客
阅读(100)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
下一页