http://codeforces.com/gym/100801/attachments 题意:给出一个数n(1 <= n <= 1e18),将 n 拆成 m 个整数,其中 m 必须是 2^x * 3^y 的形式,并且 x 和 y 不能被彼此整除, 输出 m 并将这些整数输出。 思路:Inspire ...
分类:
Web程序 时间:
2016-07-31 14:25:26
阅读次数:
240
A - Treasure Island Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status A - Treasure Island Submit Status Description ...
分类:
其他好文 时间:
2016-07-23 22:57:17
阅读次数:
290
Description standard input/output Islam is usually in a hurry. He often types his passwords incorrectly. He hates retyping his password several times ...
分类:
其他好文 时间:
2016-07-12 17:32:36
阅读次数:
164
Description One-dimensional country has n cities, the i-th of which is located at the point xi and has population pi, and all xi, as well as all pi, a ...
分类:
其他好文 时间:
2016-07-12 17:26:10
阅读次数:
158
standard input/output You must have heard about Agent Mahone! Dr. Ibrahim hired him to catch the cheaters in the Algorithms course. N students cheated ...
分类:
其他好文 时间:
2016-07-12 01:31:02
阅读次数:
137
Description standard input/output Announcement Statements There is a set of n segments with the lengths li. Find a segment with an integer length so t ...
分类:
其他好文 时间:
2016-07-12 01:30:36
阅读次数:
126
Description standard input/output Announcement Statements A permutation of n numbers is a sequence of integers from 1 to n where each number is occurr ...
分类:
其他好文 时间:
2016-07-12 01:27:25
阅读次数:
178
最近意志力好飘摇..不知道坚不坚持得下去.. 这么弱还瞎纠结...可以滚了.. 水题都不会做.. LCS (A) 水 LCS (B) 没有看题 Gym 100989C 水 1D Cafeteria (B) 不会捉 Gym 100989E 水 Gym 100989F 水 Mission in Amma ...
分类:
其他好文 时间:
2016-07-11 23:55:28
阅读次数:
136
cnm毛子的题是正宗内家拳法啊orz(捶地),拼的就是智商,这题我们队想了老半天后缀自动机,掏出各种黑科技无果 题目大意:构建一个自动机可以表达给定的n个串,询问最小的自动机节点树为多少。 解:最裸的自动机其实就是一棵trie,那么我们考虑优化这棵trie,考虑拓扑排序倒过来做,可以发现其实如果两个 ...
分类:
其他好文 时间:
2016-07-07 23:56:55
阅读次数:
204
Portal: http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1345 http://codeforces.com/gym/100803/attachments A题 好题! 坑不多,切入比较难 一开始的想法是暴力,由于求得是最小解 ...
分类:
其他好文 时间:
2016-07-07 19:44:02
阅读次数:
207