1024. 排序Input Format第一行:正整数n,表示需要排序的数字的个数;第二行:n个正整数,代表需要排序的数字。Output Format输出共一行,n个正整数,为从小到大排序后的结果。Sample Input32 1 3Sample Output1 2 3Limitsn<10000,时...
分类:
编程语言 时间:
2014-06-28 21:35:17
阅读次数:
338
In my previous post, I listed down most commontelnet commands for memcachedwith sample execution terminal logs. Today I want to discuss about the Memc...
分类:
编程语言 时间:
2014-06-28 17:26:15
阅读次数:
323
水题就要水的滴水不漏=-=,第一个疗程博主决定按照SPOJ提交人数的顺序开始刷,主要任务在于熟悉Python. 42. Adding Reversed Numbers 题目非常简单Sample input: 324 14358 754305 794 第一行是下面输入的行数,主要说的事儿是把第一个数反...
分类:
编程语言 时间:
2014-06-25 22:44:11
阅读次数:
250
Description
Input
第一行为N(0
Output
从小到大输出可见直线的编号,两两中间用空格隔开,最后一个数字后面也必须有个空格
Sample Input
3
-1 0
1 0
0 0
Sample Output
1 2
HINT
Source
这个题其实和计算几何没太大关系,需要用单调栈维护可以被看见的直线...
分类:
其他好文 时间:
2014-06-24 23:22:16
阅读次数:
279
题意:给你n个病毒串,m个网站,问每个网站包含有哪些有病毒的网站,输出病毒编号。
最后输出有多少个有病毒的网站。
Sample Input
3
aaa
bbb
ccc
2
aaabbbccc
bbaacc
Sample Output
web 1: 1 2 3
total: 1
PS:web 2 没有病毒
#include
#in...
分类:
其他好文 时间:
2014-06-24 21:10:15
阅读次数:
278
Description
监狱有连续编号为1...N的N个房间,每个房间关押一个犯人,有M种宗教,每个犯人可能信仰其中一种。如果相邻房间的犯人的宗教相同,就可能发生越狱,求有多少种状态可能发生越狱
Input
输入两个整数M,N.1
Output
可能越狱的状态数,模100003取余
Sample Input
2 3
Sample Output
6
...
分类:
其他好文 时间:
2014-06-24 20:50:44
阅读次数:
227
Is it a dream that you can access text files using SQL statements?
But now, it is true that DB Query Analyzer provides you a power tool which can help you realize the dream above. I’ll give you a sample to show its powerful function. What’s more, the p...
分类:
数据库 时间:
2014-06-21 18:41:54
阅读次数:
510
update dx9 to dx11refers to CUBEMAP samplertexCUBE(CubeMpaSampler,normal)maybe change toCubemapSampler.Sample(CubeMapSamplerState,???)??? 这里需要一个 三维向量....
分类:
其他好文 时间:
2014-06-21 14:25:05
阅读次数:
230
import randomk = random.sample(xrange(0x41, 0x5b), 26)print kimport randomk = random.sample(xrange(0x41, 0x5b), 26)print kk = [chr(x) for x in k]print...
分类:
其他好文 时间:
2014-06-21 09:05:54
阅读次数:
250
http://www.codejava.net/frameworks/spring/spring-mvc-sample-application-for-downloading-filesn this article, we are going to show you how to implement...
分类:
移动开发 时间:
2014-06-20 19:06:09
阅读次数:
623