矩阵快速幂,分1-9,10-99...看黄学长的代码理解。。。然而他直接把答案保存在最后一行(没有说明。。。好吧应该是我智障这都不知道。。。 2326: [HNOI2011]数学作业 Description Input Output Sample Input Sample Output HINT S ...
分类:
其他好文 时间:
2016-07-18 12:48:16
阅读次数:
240
B. Barnicle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Barnicle time limit per te ...
分类:
编程语言 时间:
2016-07-16 19:41:24
阅读次数:
204
二分答案+dfs判负圈。将边值减去m,如果存在负圈则有更小的环存在。注意边界。不用spfa的原因是这不是单源最短路?。。。 1486: [HNOI2009]最小圈 Description Input Output Sample Input 4 5 1 2 5 2 3 5 3 1 5 2 4 3 4 ...
分类:
其他好文 时间:
2016-07-16 08:42:01
阅读次数:
206
【CF简介】
提交链接:CF 237B
题面:
B. Young Table
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
You've got table ...
分类:
编程语言 时间:
2016-07-14 10:29:06
阅读次数:
361
【CF简介】
提交链接:CF 645C
题面:
C. Enduring Exodus
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
In an attem...
分类:
编程语言 时间:
2016-07-14 10:28:28
阅读次数:
478
Description Input Output Sample Input Sample Output HINT Source Solution 递推式长这样:$f[n]=f[n-1]*10^k+n$ 对于每一段位数个数相同的$n$(如$10\sim99,100\sim999,23333\sim66 ...
分类:
其他好文 时间:
2016-07-14 03:12:22
阅读次数:
133
二维BIT。。。 1452: [JSOI2009]Count Description Input Output Sample Input Sample Output 1 2 HINT Source ...
分类:
Web程序 时间:
2016-07-14 02:38:01
阅读次数:
144
题目描述 Description 给出若干个整数,询问其中是否有一对数的和等于给定的数。 给出若干个整数,询问其中是否有一对数的和等于给定的数。 输入输出格式 Input/output 输入格式: 共三行: 第一行是整数n(0 < n <= 100,000),表示有n个整数。 第二行是n个整数。整数 ...
分类:
其他好文 时间:
2016-07-13 21:49:44
阅读次数:
1096
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
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