摘要: 在正式赛时,眼看着地球人队在最后一刻从铜的最后一位掉下来;还有小仙女队从刚开始的一马当先,掉到银,最后得了个铜;而其他学校的某些队虽然刚开始出题速度不快,但是后来居上。深深感受到了“实力”才是最终决定因素,关键时刻,解题方法和经验才是最可靠的,也是最重要的。 在这两天的... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 航院1009 FatMouse’s Trade 解题报告 Problem DescriptionFatMouse prepared M pounds ofcat food, ready to trade with the cats guarding the warehouse containing ... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 这次比赛写题写的不太好。主要问题出在第一道题:“期末成绩”,连续提交了五次还是六次。主要的问题是没有看清题目要求的数的范围,导致定义数组时数组范围开小了。再修改代码的时候也没有再读题,一直在找别的错误,以为是别的错误。直到连续提交了很多次后才想起来再读一遍题,导致提交次数过多,罚... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1: 如果while(scanf("%d%d"),&a, &b)超时,则while(scanf("%d%d"),&a, &b)!=EOF)则有可能通过。 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Chinese ZodiacTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submissio... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题意概括:此题为一道模拟题,根据题意进行模拟即可。解题思路: 1:此题求立体的表面积,只需算出每个面的表面积即可 2:表面积包括顶面和侧面 3:让每一个立方体与其前后左右的立方体的大小进行比较,多出来的部分需要计算其表面积。错误原因: 1: 错误地将二重循环的初始条件从零开始。因... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 航院1009 FatMouse’s Trade 解题报告Problem Description FatMouse prepared M pounds ofcat food, ready to trade with the cats guarding the warehouse con... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 例子:Fibonacci数列如果将一个变量定义为局部变量,比如i在这个代码里:#includeint f[1000]; void fibonacci(int n){ int i; f[0] = 1; f[1] = 1; for(i = 2; i int f[1... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(167) 评论(0) 推荐(0) 编辑
摘要: B:train seats reservation时间限制:1000ms 内存限制:131072KYou are given a list of train stations, say from the station 1 to the station 100. The passen... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 结构体排序的几种情况1.一个结构体中有三个元素,按照其中一个元素进行升序排列:先定义一个结构体:struct node { int s; int t; int w;}a[1005];然后写排序代码:int cmp(node a, node b){ return... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(10348) 评论(0) 推荐(0) 编辑