摘要: 做1010 本来是想的DFS深搜 但是自己凭空打 打不出来 因为没有记模板 然后就去搜 但是看了一遍 自己打却又是有BUG 然后验证 就出现了一个二维字符数组打印的问题 开始代码是这样 #include<stdio.h> void main() { char a[3][4]; int i,j; fo 阅读全文
posted @ 2016-06-15 12:41 果冻0_0 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 题意:有n个房子,每个房子里都有老鼠喜欢吃的咖啡豆J[i],但是每个房子都有猫看守,老鼠现在手上有M的猫粮。可以用猫粮换咖啡豆,每只猫都有猫粮的要求F[i]。老鼠得到的咖啡豆是J[i]*a% a%=给的猫粮/F[i] 求最多可以得到多少咖啡豆 思路:没看懂英文,所以搜了一下,看见他们说贪心... 其 阅读全文
posted @ 2016-06-12 22:10 果冻0_0 阅读(591) 评论(0) 推荐(0) 编辑
摘要: Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the f 阅读全文
posted @ 2016-06-07 16:31 果冻0_0 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 题目意思是:给你N个数字 每个数字表示多少层楼 现在要你从0层楼开始坐电梯 一次按顺序走过这些楼层 规则是 上楼6秒 ,下楼4秒,每次到达一个楼层停5秒..... 思路:模拟 代码如下:(要注意的是 如果电梯没动 也就是temp==0,这也是一种情况.....被坑了..) 阅读全文
posted @ 2016-06-07 12:35 果冻0_0 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Problem Description The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this 阅读全文
posted @ 2016-06-02 17:59 果冻0_0 阅读(410) 评论(0) 推荐(0) 编辑
摘要: Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are 阅读全文
posted @ 2016-05-19 23:00 果冻0_0 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 自从 暑假 ACM集训之后就再也没有碰过 ACM了 以前说出去的话都是泼出去的水啊 哈哈哈 水一道题啊 一年过去了 Problem Description Contest time again! How excited it is to see balloons floating around. B 阅读全文
posted @ 2016-05-19 21:01 果冻0_0 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Mohammad has recently visited Switzerland. As heloves his friends very much, he decided to buy somechocolate for them, but as this fine chocolate is v... 阅读全文
posted @ 2015-08-22 15:52 果冻0_0 阅读(110) 评论(0) 推荐(0) 编辑
摘要: DescriptionYou probably have played the game "Throwing Balls into the Basket". It is a simple game. You have to throw a ball into a basket from a cert... 阅读全文
posted @ 2015-08-22 08:36 果冻0_0 阅读(142) 评论(0) 推荐(0) 编辑
摘要: DescriptionLittle Lesha loves listening to music via his smartphone. But the smartphone doesn't have much memory, so Lesha listens to his favorite son... 阅读全文
posted @ 2015-08-21 20:58 果冻0_0 阅读(155) 评论(0) 推荐(0) 编辑