http://poj.org/problem?id=1286 Necklace of Beads Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9655 Accepted: 3968 Description Beads of r ...
分类:
其他好文 时间:
2018-08-24 23:40:40
阅读次数:
217
Beads of N colors are connected together into a circular necklace of N beads (N<=1000000000). Your job is to calculate how many different kinds of the ...
分类:
其他好文 时间:
2018-08-24 02:06:04
阅读次数:
189
Portal broken qwq Description 给你一个长度为$n$的整数序列,要支持以下两个操作: $(0,i,x)$:将第$i$个数改成$x$ $(1,l,r,k)$:求出$k$个区间,满足这些区间没有公共部分并且都在$[l,r]$的范围内,求这些区间内的数的和的最大值(区间可以为空 ...
分类:
其他好文 时间:
2018-08-20 22:58:17
阅读次数:
211
On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep ...
分类:
其他好文 时间:
2018-08-19 18:26:26
阅读次数:
222
题目: 你有一个破损的键盘。键盘上的所有键都可以正常工作,但有时Home键或者End键会自 动按下。你并不知道键盘存在这一问题,而是专心地打稿子,甚至连显示器都没打开。当你 打开显示器之后, 展现在你面前的是一段悲剧的文本。你的任务是在打开显示器之前计算出 这段悲剧文本。 输入包含多组数据。每组数据 ...
分类:
其他好文 时间:
2018-08-18 21:13:26
阅读次数:
206
Beads of red, blue or green colors are connected together into a circular necklace of n beads ( n < 24 ). If the repetitions that are produced by rota ...
分类:
其他好文 时间:
2018-08-13 00:48:33
阅读次数:
166
官方文档给出的解释:http://httpd.apache.org/docs/current/env.html#fixheader (以下摘自官方文档,英文不想看的可以直接看忽略。。直接从下划线后内容开始) —————————————————————————————— Passing broken ...
分类:
Web程序 时间:
2018-08-12 14:22:06
阅读次数:
492
Portal broken qwq Description ?? 给你一个长度为$n$的序列,序列中的每个数都是不超过$m$的正整数,求满足以下两个条件的序列数量: 1.序列中至少有一个质数 2.序列中$n$个数之和为$p$的倍数 ?? 数据范围:$1 include include using n ...
分类:
其他好文 时间:
2018-08-07 21:29:44
阅读次数:
246
You’re typing a long text with a broken keyboard. Well it’s not so badly broken. The only problem with the keyboard is that sometimes the “home” key o ...
分类:
编程语言 时间:
2018-08-01 22:26:47
阅读次数:
197
You’re typing a long text with a broken keyboard. Well it’s not so badly broken. The only problem with the keyboard is that sometimes the “home” key o ...
分类:
其他好文 时间:
2018-08-01 22:11:34
阅读次数:
144