题目链接给四个数l, r, k, b。 求出在[l, r]内满足这个数可以分解成k个不同的b次方的数的个数。只要把一个数按b进制分解, 然后找一个刚好有k个1, 其余都是0的数的个数。好神....按B进制分解完全想不到。 1 #include 2 using namespace std; 3 #de...
分类:
其他好文 时间:
2015-12-13 21:55:08
阅读次数:
139
找到了久违的做题冲动 哦也短期计划:入门阶段:Ural先把前一段时间学了一点的数据结构练一练:Ural: Data Structures Problemshttp://acm.timus.ru/problemset.aspx?space=1&tag=structure再重新系统学习DP(在网易、ed...
分类:
其他好文 时间:
2015-12-04 20:49:32
阅读次数:
174
1341. DeviceTime limit: 1.0 secondMemory limit: 64 MBMajor (M): You claimed that your device would be able to fly round the Earth several times and to...
分类:
其他好文 时间:
2015-11-26 23:22:23
阅读次数:
339
1346. Intervals of MonotonicityTime limit: 1.0 secondMemory limit: 64 MBIt’s well known that a domain of any continuous function may be divided into i...
分类:
其他好文 时间:
2015-11-26 23:22:16
阅读次数:
282
1272. Non-Yekaterinburg SubwayTime limit: 1.0 secondMemory limit: 64 MBA little town started to construct a subway. The peculiarity of the town is tha...
分类:
其他好文 时间:
2015-11-26 23:07:27
阅读次数:
216
1273. TieTime limit: 1.0 secondMemory limit: 64 MBThe subway constructors are not angels. The work under the ground and… Well, they are not angels. An...
分类:
其他好文 时间:
2015-11-26 23:03:44
阅读次数:
259
1269. Obscene Words FilterTime limit: 0.5 secondMemory limit: 8 MBThere is a problem to check messages of web-board visitors for the obscene words. Yo...
分类:
其他好文 时间:
2015-11-26 22:59:07
阅读次数:
251
1339. BabiesTime limit: 1.0 secondMemory limit: 64 MBO tempora! O mores!Present-day babies progress quickly. There are exactlykboys andkgirls in the k...
分类:
其他好文 时间:
2015-11-26 22:49:02
阅读次数:
234
1306. Sequence MedianTime limit: 1.0 secondMemory limit: 1 MBLanguage limit: C, C++, PascalGiven a sequence ofNnonnegative integers. Let's define the ...
分类:
其他好文 时间:
2015-11-19 22:22:49
阅读次数:
211
1431. DiplomasTime limit: 1.0 secondMemory limit: 64 MBIt might be interesting for you to learn that there are students who take part in various conte...
分类:
其他好文 时间:
2015-11-19 22:19:06
阅读次数:
219