码迷,mamicode.com
首页 >  
搜索关键字:friends    ( 1058个结果
B - Plane of Tanks: Pro
DescriptionVasya has been playing Plane of Tanks with his friends the whole year. Now it is time to divide the participants into several categories de...
分类:其他好文   时间:2014-11-01 13:09:05    阅读次数:258
[Codeforces Round #275 (Div. 2)]B - Friends and Presents
最近一直在做 codeforces ,总觉得已经刷不动 BZOJ 了? ——真是弱喵你看连 Div.2 的 B 题都要谢谢题解,不是闲就是傻显然我没那么闲 ╮(╯_╰)╭我觉得这题的想法挺妙的~大意是你需要分别给 a 和 b cnt1 和 cnt2 个数字但是 a 不要被 x 整除的数 ,as we...
分类:其他好文   时间:2014-10-26 19:45:53    阅读次数:154
codeforces B. Friends and Presents(二分+容斥)
题意:从1....v这些数中找到c1个数不能被x整除,c2个数不能被y整除! 并且这c1个数和这c2个数没有相同的!给定c1, c2, x, y, 求最小的v的值! 思路: 二分+容斥,二分找到v的值,那么s1 = v/x是能被x整除的个数 s2 = v/y是能被y整除数的个数,s3 = v/lc....
分类:其他好文   时间:2014-10-25 13:08:33    阅读次数:143
[Java 8] Lambda在集合中的使用
Lambda在集合中的使用 列表的遍历 提起对于集合的遍历,恐怕下面的这种方式已经是一种思维定式了吧: final ListString> friends = Arrays.asList("Brian", "Nate", "Neal", "Raju", "Sara", "Scott"); for(int i = 0; i friends.size(); i++) { ...
分类:编程语言   时间:2014-10-21 10:24:46    阅读次数:405
ACM学习历程——ZOJ 3822 Domination (2014牡丹江区域赛 D题)(概率,数学递推)
DescriptionEdward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with his friends. What's more, he bough...
分类:其他好文   时间:2014-10-17 21:52:25    阅读次数:312
HDU - 3341 Lost's revenge(AC自动机+DP)
Description Lost and AekdyCoin are friends. They always play "number game"(A boring game based on number theory) together. We all know that AekdyCoin is the man called "nuclear weapon of FZU,descen...
分类:其他好文   时间:2014-10-17 15:38:24    阅读次数:282
UVA 10608 Friends
很水的并查集#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include ...
分类:其他好文   时间:2014-10-14 16:01:08    阅读次数:192
ZOJ - 3822 Domination (DP)
Edward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with his friends. What's more, he bought a large decorative chessboard with N rows and M columns. ...
分类:其他好文   时间:2014-10-12 21:51:28    阅读次数:382
每日一“酷”之textwrap
介绍:需要美观打印时,可以使用textwrap模块来格式化要输出的文本,这个模块允许通过编程提高类似段落自动换行或填充特性等功能。1 创建实例数据1 sample_text = '''2 I’m very happy and I like to make friends with other...
分类:其他好文   时间:2014-10-10 04:10:53    阅读次数:219
UVA 11450 Wedding shopping(DP)
One of our best friends is getting married and we all are nervous because he is the first of us who is doing something similar. In fact, we have never assisted to a wedding, so we have no clothes o...
分类:其他好文   时间:2014-10-10 01:16:33    阅读次数:274
1058条   上一页 1 ... 96 97 98 99 100 ... 106 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!