You are given a sequence of integers, A1,A2,...,An. And you are allowed a manipulation on the sequence to transform the origin sequence into another sequence B1,B2,...,Bn(Maybe the two sequences are s...
分类:
其他好文 时间:
2014-05-13 13:45:10
阅读次数:
327
Cutting GameTime Limit:1000MSMemory
Limit:65536KTotal Submissions:2844Accepted:1036DescriptionUrej loves to play
various types of dull games. He usual...
分类:
其他好文 时间:
2014-05-10 07:41:20
阅读次数:
303
本人BZOJ的处女作。这题题面还是蛮有趣的吧。然后三个问题都蛮有意思的。要保证正确性,出数据还是异常蛋疼啊。本来各出三题的。但是考虑到是OJ上的题,就搞在一起了。这样代码量就会比较大。
分类:
其他好文 时间:
2014-05-08 23:47:58
阅读次数:
846
一个用来分割字符串的函数:
strtok
char * strtok ( char * str, const char * delimiters );
Split string into tokens
A sequence of calls to this function split str into tokens, which are sequences of co...
分类:
其他好文 时间:
2014-05-07 16:18:12
阅读次数:
273
Aeroplane chess
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1122 Accepted Submission(s): 762
Problem Description
Hzz loves a...
分类:
其他好文 时间:
2014-05-07 11:51:37
阅读次数:
330
Soma is a fashionable girl. She absolutely loves shiny stones that she can put on as jewellery accessories. She has been collecting stones since her childhood - now she has become really good with ide...
分类:
其他好文 时间:
2014-05-07 07:38:20
阅读次数:
415
Tomya is a girl. She loves Chef Ciel very much.
Tomya like a positive integer p, and now she wants to get a receipt of Ciel's restaurant whose total price is exactly p.
The current menus of Ciel's...
分类:
其他好文 时间:
2014-05-04 18:53:40
阅读次数:
317
给两个长度分别为n和m的序列,现在有两种操作:1.分别选择两个序列的一个非空前缀,切两个前缀的最后一位相同,删除之,得到1分(只累计),消耗e;2.直接删除两个序列,消耗值定于两个序列之前删除的元素个数之和,并且使得得到的分有效(之前没有有效分)...
分类:
其他好文 时间:
2014-05-04 18:10:51
阅读次数:
287
题目描述:
Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each step he throws a dice(a dice have six faces with equal probability to...
分类:
其他好文 时间:
2014-05-04 09:18:42
阅读次数:
321
题目描述:
Description
Furik loves math lessons very much, so he doesn't attend them, unlike Rubik. But now Furik wants to get a good mark for math. For that Ms. Ivanova, his math teacher, gave him...
分类:
其他好文 时间:
2014-05-03 16:45:31
阅读次数:
234