码迷,mamicode.com
首页 >  
搜索关键字:zcc loves codefires    ( 818个结果
Lucky Numbers (easy) CodeForces - 96B
Petya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits other than 4 and 7. ...
分类:其他好文   时间:2017-07-30 00:54:06    阅读次数:169
[洛谷P1580]yyy loves Easter_Egg I
题目大意:很多人@一个人,如果那个人忍不住说话了,就轰炸成功,如果那个人没说话或者别的人没有@他或@很多个人,则轰炸失败。(具体见原题) 解题思路:字符串处理,好好用sscanf即可(细节见代码)。 C++ Code: ...
分类:其他好文   时间:2017-07-28 09:52:51    阅读次数:210
bzoj 3309 DZY Loves Math - 莫比乌斯反演 - 线性筛
对于正整数n,定义f(n)为n所含质因子的最大幂指数。例如f(1960)=f(2^3 * 5^1 * 7^2)=3, f(10007)=1, f(1)=0。 给定正整数a,b,求sigma(sigma(f(gcd(i,j)))) (i=1..a, j=1..b)。 Input 第一行一个数T,表示询 ...
分类:其他好文   时间:2017-07-27 23:37:28    阅读次数:356
Codeforces Round #FF (Div. 2) A. DZY Loves Hash
DZY has a hash table with p buckets, numbered from 0 to p?-?1. He wants to insert n numbers, in the order they are given, into the hash table. For the ...
分类:其他好文   时间:2017-07-25 16:35:36    阅读次数:180
HDU 4876 ZCC loves cards 暴力+剪枝
题意:n张牌,选k个排成一圈,给出L,求出最大R 使得[L,R]内任意一个数 都可以由圈内连续m个数异或得到.n<=20,k<=6,a[i],L<=100. m为自己设定的. 暴力 总共有A(20,6)种方案 每种方案k^2算出异或数 TLE..先C(20,6)选出方案 若能过最优性剪支,在全排列更 ...
分类:其他好文   时间:2017-07-23 18:22:50    阅读次数:118
Codeforces Hello2015第一题Cursed Query
英文题面: De Prezer loves movies and series. He has watched the Troy for like 100 times and also he is a big fan of Supernatural series.So, he did some re ...
分类:其他好文   时间:2017-07-22 23:44:01    阅读次数:220
[CodeForces - 447E] E - DZY Loves Fibonacci Numbers
E DZY Loves Fibonacci Numbers In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation DZY loves Fibonacci nu ...
分类:其他好文   时间:2017-07-21 14:12:40    阅读次数:361
[CodeForces - 447D] D - DZY Loves Modification
D - DZY Loves Modification As we know, DZY loves playing games. One day DZY decided to play with a n?×?mmatrix. To be more precise, he decided to modi ...
分类:其他好文   时间:2017-07-21 10:51:07    阅读次数:162
[CodeForces - 447C] C - DZY Loves Sequences
C - DZY Loves Sequences DZY has a sequence a, consisting of n integers. We'll call a sequence ai,?ai?+?1,?...,?aj (1?≤?i?≤?j?≤?n) a subsegment of the ...
分类:其他好文   时间:2017-07-21 10:27:08    阅读次数:125
Codeforces 447C - DZY Loves Sequences
447C - DZY Loves Sequences 思路:dp 代码: ...
分类:其他好文   时间:2017-07-18 13:29:53    阅读次数:116
818条   上一页 1 ... 23 24 25 26 27 ... 82 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!