摘要: A - Blue Jeans Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description The Genographic Project is a research partnership between IBM and The National Geographic... 阅读全文
posted @ 2013-08-09 11:12 围剿大叔 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 开始不知道char**,被安叔训了 转载一个过来:http://blog.sina.com.cn/s/blog_65db99840100lwhs.html 平时都用的是char数组,基本忘记了char*数组和char**数组该怎么用了 char s1[10]; s1[0] s1[1]等都是char s1是char*,等同于&s1[0] char*s2[10]; s2[0] s2[1]... 阅读全文
posted @ 2013-08-09 10:14 围剿大叔 阅读(546) 评论(0) 推荐(0) 编辑
摘要: Halloween treatsTime Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u[Submit] [Go Back] [Status] DescriptionEvery year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call o 阅读全文
posted @ 2013-08-08 11:03 围剿大叔 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 总结下自己老是犯的2b错误1.=写成==2.for或者while后加了个;3.变量写错4.以后再补充以此为贱! 阅读全文
posted @ 2013-08-08 10:01 围剿大叔 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Find a multipleTime Limit: 1000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u[Submit] [Go Back] [Status] DescriptionThe input contains N natural (i.e. positive integer) numbers ( N #include const int N = 10001;int a[N],sum[N],visit[N] ;int n;void print(int i,int j){ printf("%d\n&qu 阅读全文
posted @ 2013-08-08 09:59 围剿大叔 阅读(166) 评论(0) 推荐(0) 编辑
摘要: CodeTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]DescriptionTransmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associat 阅读全文
posted @ 2013-08-07 15:19 围剿大叔 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 不容易系列之一Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个神奇的女生,在英语考试的时候,竟然把40个单项选择题全部做错了!大家都学过概率论,应该知道出现这种情况的概率, 阅读全文
posted @ 2013-08-07 15:17 围剿大叔 阅读(170) 评论(0) 推荐(0) 编辑
摘要: E -Little RooksTime Limit:500MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeSGU 222DescriptionInspired by a "Little Bishops" problem, Petya now wants to solve problem for rooks.A rook is a piece used in the game of chess which is played on a board of square grid 阅读全文
posted @ 2013-08-03 16:55 围剿大叔 阅读(212) 评论(0) 推荐(0) 编辑
摘要: B -Piggy-BankTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea behind is 阅读全文
posted @ 2013-08-02 16:31 围剿大叔 阅读(213) 评论(0) 推荐(0) 编辑
摘要: A -饭卡Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。Input多组数据。对于每组数据:第一行为正整数n,表示菜的数量。n#i 阅读全文
posted @ 2013-08-02 15:55 围剿大叔 阅读(192) 评论(0) 推荐(0) 编辑