码迷,mamicode.com
首页 >  
搜索关键字:d. drazil and tiles    ( 269个结果
CodeForces515B Drazil and His Happy Friends (数学)
B. Drazil and His Happy Friends time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Drazil has many friends. Some of them are happy and some o...
分类:移动开发   时间:2015-02-20 16:22:34    阅读次数:281
Codeforces Round #292 (Div. 2)
A .Drazil and Date题目大意:问是否有一条路径,从(0,0)到(x,y)正好走s步的路线存在,每步可以上下左右移动一格思路:显然先计算出(0,0)到(x,y)的最短距离后,看剩下的步数是否是偶数就可以了,注意x,y为负数的情况 1 #include 2 #include 3 usin...
分类:其他好文   时间:2015-02-20 14:05:36    阅读次数:207
A. Drazil and Date
这是codeforces#292 div2 的一道题,因为本人比较水,目前只能做div2了。问题简化版就是: 从 (0,0) 走到 (a, b) ,s 步能不能走完。每次能向上下左右走,且只能走一步。 一开始,要从(0, 0) 走到 (a, b) ,至少走 |a| + |b| 步,对不对?你自己试一下。所以,当你从(0, 0) 走到 (2, 3) ,要是5步,则刚好能够走到(2, 3), 要是...
分类:其他好文   时间:2015-02-20 06:31:58    阅读次数:184
codeforces 515C. Drazil and Factorial 解题报告
题目链接:http://codeforces.com/problemset/problem/515/C题目意思:给出含有n 个只有阿拉伯数字的字符串a(可能会有前导0),设定函数F(a) = 每个数字的阶乘乘积。例如 F(135) = 1! *3! * 5!。需要找出 x,使得F(x) = F(a)...
分类:其他好文   时间:2015-02-18 21:01:27    阅读次数:191
B. Drazil and His Happy Friends
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDrazil has many friends. Some of them are happy ...
分类:移动开发   时间:2015-02-18 18:44:57    阅读次数:245
CodeForces Round #292 Div.2
昨天注册了没有打,晚上给长辈们敬完酒,回来就洗洗睡了,=_=||A. Drazil and Date题意:是否有可能恰好用s步,从原点走到(a, b)。分析:首先要走到终点至少要|a|+|b|步,如果还剩多余的步数的话,那就向右走一格再走回来。也就是s要比|a|+|b|多偶数步(包括0)才可以。B....
分类:其他好文   时间:2015-02-18 15:12:26    阅读次数:209
Codeforces Round #292 (Div. 2) -- D. Drazil and Tiles (拓扑排序)
D. Drazil and Tiles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Drazil created a following problem abou...
分类:编程语言   时间:2015-02-18 14:09:31    阅读次数:287
codeforces 515B. Drazil and His Happy Friends 解题报告
题目链接:http://codeforces.com/problemset/problem/515/B题目意思:有 n 个 boy 和 m 个 girl,有 b 个 boy 和 g 个 girl (通过给出数组下标)是 happy的,规定每轮 dinner 中,派出编号为 i mod n 个男 和 ...
分类:移动开发   时间:2015-02-18 14:06:19    阅读次数:211
poj1979 Red and Black
Red and Black Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 24058   Accepted: 13007 Description There is a rectangular room, covered with square tiles. E...
分类:其他好文   时间:2015-02-18 14:06:09    阅读次数:133
codeforces 515A.Drazil and Date 解题报告
题目链接:http://codeforces.com/problemset/problem/515/A题目意思:问能否从 (0, 0) 出发,恰好走 s 步,到达该位置(a, b)。 首先容易知道,最少的步数为 |a| + |b|,最长就是——当然是无限啦(乱兜圈子就行)。然后就有一点点带着个人感....
分类:其他好文   时间:2015-02-18 14:05:05    阅读次数:189
269条   上一页 1 ... 19 20 21 22 23 ... 27 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!