随笔分类 -  杂乱的

摘要:这次完全是水题大集合啊,希望大家A的开心;前两个题是我找的,后两个是陶叔找的,另外因为我的偷懒,下面所有的代码都是陶叔亲自写的,十分感谢陶叔;陶叔暑假为了大家的集训,牺牲了很多自己宝贵的时间,大家接下来要好好训练啊!!!!废话少说,进入正题:Problem A SPOJ QUEST5签到题:将所有的... 阅读全文
posted @ 2014-08-11 10:33 Yours1103 阅读(153) 评论(0) 推荐(0)
摘要:1537:水题,排序贪心#include#include#include#define maxn 1009using namespace std;int num[maxn];int tmp[maxn];int b[maxn];int main(){ int n; while(scanf("%d",&n)&&n) { for(int i=1;in-i;j--) ans+=tmp[j]; ret=max(ret,ans); } printf("%d\n",ret); } re... 阅读全文
posted @ 2014-03-31 13:05 Yours1103 阅读(147) 评论(0) 推荐(0)
摘要:A:水题代码: 1 #include 2 #include 3 using namespace std; 4 5 int she[25]; 6 7 int n,m,c; 8 9 int main()10 {11 int ca=1,a;12 while(scanf("%d%d%d",&n,&m,&c)&&(n+m+c))13 {14 printf("Sequence %d\n",ca++);15 for(int i=1; ic)puts("Fuse was blown.");26 else27 { 阅读全文
posted @ 2013-10-27 23:23 Yours1103 阅读(304) 评论(0) 推荐(0)