07 2017 档案

摘要:In a highly developed alien society, the habitats are almost infinite dimensional space. In the history of this planet,there is an old puzzle. You hav 阅读全文
posted @ 2017-07-28 11:50 冥想选手 阅读(398) 评论(1) 推荐(0)
摘要:Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets a ne 阅读全文
posted @ 2017-07-26 15:46 冥想选手 阅读(180) 评论(2) 推荐(0)
摘要:湫湫减肥 越减越肥! 最近,减肥失败的湫湫为发泄心中郁闷,在玩一个消灭免子的游戏。 游戏规则很简单,用箭杀死免子即可。 箭是一种消耗品,已知有M种不同类型的箭可以选择,并且每种箭都会对兔子造成伤害,对应的伤害值分别为Di(1 <= i <= M),每种箭需要一定的QQ币购买。 假设每种箭只能使用一次 阅读全文
posted @ 2017-07-26 15:13 冥想选手 阅读(257) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/628/B 解题思路: 一个数最后两位数能被4整除那么这个数就能被4整除,而且题目还是连续的子序列,这就很简单了 实现代码: 阅读全文
posted @ 2017-07-24 16:36 冥想选手 阅读(221) 评论(0) 推荐(0)
摘要:A. Anton and Polyhedrons 题目链接:http://codeforces.com/contest/785/problem/A 智障水题 实现代码: B. Anton and Classes 链接:http://codeforces.com/contest/785/problem 阅读全文
posted @ 2017-07-23 14:59 冥想选手 阅读(216) 评论(0) 推荐(0)
摘要:You have been out of Syria for a long time, and you recently decided to come back. You remember that you have M friends there and since you are a gene 阅读全文
posted @ 2017-07-22 23:46 冥想选手 阅读(308) 评论(0) 推荐(0)
摘要:A sequence of positive and non-zero integers called palindromic if it can be read the same forward and backward, for example: 15 2 6 4 6 2 15 20 3 1 1 阅读全文
posted @ 2017-07-19 12:51 冥想选手 阅读(273) 评论(0) 推荐(0)
摘要:A:链接:http://codeforces.com/contest/825/problem/A 解题思路: 一开始以为是个进制转换后面发现是我想多了,就是统计有多少个1然后碰到0输出就行,没看清题意。。 实现代码: B.Five-In-a-Row 链接:http://codeforces.com/ 阅读全文
posted @ 2017-07-17 23:44 冥想选手 阅读(378) 评论(0) 推荐(0)
摘要:A:链接:http://codeforces.com/contest/831/problem/A 解题思路: 从前往后分别统计递增,相等,递减序列的长度,如果最后长度和原序列长度相等那么就输出yes; 实现代码: B:链接:http://codeforces.com/contest/831/prob 阅读全文
posted @ 2017-07-16 14:11 冥想选手 阅读(255) 评论(2) 推荐(0)
摘要:A.题目链接:http://codeforces.com/contest/828/problem/A 解题思路: 直接暴力模拟 B.题目链接:http://codeforces.com/contest/828/problem/B 思路: 暴力 C.题目链接:http://codeforces.com 阅读全文
posted @ 2017-07-12 11:50 冥想选手 阅读(195) 评论(0) 推荐(0)
摘要:For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultim 阅读全文
posted @ 2017-07-07 18:34 冥想选手 阅读(181) 评论(0) 推荐(0)
摘要:The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height? The 阅读全文
posted @ 2017-07-07 15:31 冥想选手 阅读(201) 评论(0) 推荐(0)
摘要:There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c 阅读全文
posted @ 2017-07-07 15:27 冥想选手 阅读(215) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/612/problem/C 解题思路: 题意就是要求判断这个序列是否为RBS,每个开都要有一个和它对应的关,如:<()>满足条件,但<(>)就不满足条件,反正直接就是用栈做就行了,完美符合题目要求。 阅读全文
posted @ 2017-07-07 11:57 冥想选手 阅读(216) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/612/B 解题思路: 一开始看错了题意,他要求的是从1-n所耗费的时间,n表示的是数值而不是下标, 实现代码: 阅读全文
posted @ 2017-07-07 10:34 冥想选手 阅读(213) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/611/problem/C 解题思路: 分别对矩阵横竖遍历,满足条件则加1,不满足则不变,先将整个矩阵都标记完,然后只要输出起点和终点数值的差值就行。有点动态规划的感觉。 阅读全文
posted @ 2017-07-06 19:54 冥想选手 阅读(165) 评论(0) 推荐(0)
摘要:There are N jobs to be finished. It takes a robot 1 hour to finish one job. At the beginning you have only one robot. Luckily a robot may build more r 阅读全文
posted @ 2017-07-06 16:33 冥想选手 阅读(218) 评论(0) 推荐(0)
摘要:You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dict 阅读全文
posted @ 2017-07-06 16:28 冥想选手 阅读(157) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/611/B 解题思路: 直接暴力推出所有符合条件的。 由进制转换可以知道,二进制只有1个0也就是十进制减去前面任意一个2的次方 然后脑残一样的用了位运算,死都无法表示64位,只能32位,还以为电脑出问题了。。 阅读全文
posted @ 2017-07-06 16:19 冥想选手 阅读(200) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/610/problem/C 解题思路: 将后一个矩阵拆分为四个前一状态矩阵,其中三个与前一状态相同,剩下一个直接取反就行。还有很多种取法,这种比较方便就是。 实现代码: 阅读全文
posted @ 2017-07-06 14:39 冥想选手 阅读(230) 评论(0) 推荐(0)
摘要:B. Vika and Squares time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Vika and Squares 阅读全文
posted @ 2017-07-06 11:40 冥想选手 阅读(396) 评论(0) 推荐(0)
摘要:C. Load Balancing time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Load Balancing time 阅读全文
posted @ 2017-07-06 00:01 冥想选手 阅读(258) 评论(0) 推荐(0)
摘要:给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中,gloria不能走到迷宫外面去。令人头痛的是,g 阅读全文
posted @ 2017-07-05 20:50 冥想选手 阅读(195) 评论(0) 推荐(0)
摘要:B. Arpa’s obvious problem and Mehrdad’s terrible solution time limit per test 1 second memory limit per test 256 megabytes input standard input output 阅读全文
posted @ 2017-07-04 14:25 冥想选手 阅读(165) 评论(0) 推荐(0)
摘要:Alyona's mother wants to present an array of n non-negative integers to Alyona. The array should be special. Alyona is a capricious girl so after she 阅读全文
posted @ 2017-07-04 13:16 冥想选手 阅读(443) 评论(0) 推荐(0)
摘要:C. Dasha and Password time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Dasha and Passw 阅读全文
posted @ 2017-07-04 11:12 冥想选手 阅读(167) 评论(0) 推荐(0)
摘要:C. Tennis Championship time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Famous Brazil cit 阅读全文
posted @ 2017-07-03 23:15 冥想选手 阅读(637) 评论(0) 推荐(0)
摘要:Solve the equation:p ∗ e ^−x + q ∗ sin(x) + r ∗ cos(x) + s ∗ tan(x) + t ∗ x ^2 + u = 02 + u = 0where 0 ≤ x ≤ 1.InputInput consists of multiple test ca 阅读全文
posted @ 2017-07-03 19:19 冥想选手 阅读(177) 评论(0) 推荐(0)
摘要:A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example,the name “anna” is a palindrome. Numbers can also be 阅读全文
posted @ 2017-07-03 19:05 冥想选手 阅读(214) 评论(0) 推荐(0)
摘要:It has been said that a watch that is stopped keeps better time than one that loses 1 second per day.The one that is stopped reads the correct time tw 阅读全文
posted @ 2017-07-03 17:35 冥想选手 阅读(177) 评论(0) 推荐(0)
摘要:Problem Description JGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines.Half of these c 阅读全文
posted @ 2017-07-02 11:10 冥想选手 阅读(158) 评论(0) 推荐(0)