摘要: Problem Description Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For examp 阅读全文
posted @ 2019-07-21 19:30 _Ackerman 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Problem Description 猜数字游戏是gameboy最喜欢的游戏之一。游戏的规则是这样的:计算机随机产生一个四位数,然后玩家猜这个四位数是什么。每猜一个数,计算机都会告诉玩家猜对几个数字,其中有几个数字在正确的位置上。比如计算机随机产生的数字为1122。如果玩家猜1234,因为1,2这 阅读全文
posted @ 2019-07-21 17:11 _Ackerman 阅读(510) 评论(0) 推荐(0) 编辑
摘要: Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a 阅读全文
posted @ 2019-07-21 16:24 _Ackerman 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Problem Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are l 阅读全文
posted @ 2019-07-21 14:31 _Ackerman 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/1185/C1 题目大意: 有n个学生排队依次进行考试(一次只能有一名同学进行考试,俺也不知道为啥,俺也不敢问),考试时间共计m,每个考生考试需要若干时间,考试时间结束后,没有时间考试的同学就不能考了。输入分 阅读全文
posted @ 2019-07-21 14:06 _Ackerman 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/1185/B 题目大意:Methodius想发一封邮件给他的朋友(应还要打印出来),但是它的键盘坏了,请你判断从键盘输入的内容,是否能按照他的想法打印出来(打印规则是可以输入重复的字符,打印机会过滤掉多余的重 阅读全文
posted @ 2019-07-21 12:39 _Ackerman 阅读(252) 评论(0) 推荐(0) 编辑