#!/usr/bin/python
import sys,time
start = sys.argv[1]
end = sys.argv[2]
size = sys.argv[3]
def add(start,end,size):
def add1(number,size):
number[-1] += 1
if number[-1] == size:
del number...
分类:
编程语言 时间:
2015-04-14 21:37:29
阅读次数:
195
Minimum Inversion Number
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice HDU
1394
Appoint description:
System Crawler (2015-04-13)
...
分类:
其他好文 时间:
2015-04-14 21:36:51
阅读次数:
174
problem:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, pr...
分类:
其他好文 时间:
2015-04-14 21:31:46
阅读次数:
149
#importvoidnumber() { //将int类型的10包装成一个NSNumber对象 NSNumber*number = [NSNumbernumberWithInt:10]; NSLog(@"number=%@", number); NSMutableArray*array = [N....
分类:
其他好文 时间:
2015-04-14 21:30:07
阅读次数:
114
###Section1:GlobalEnvironment第一部分:全局环境配置##ThedirectivesinthissectionaffecttheoveralloperationofApache,#suchasthenumberofconcurrentrequestsitcanhandleorwhereit#canfinditsconfigurationfiles.#这部分的指令将影响所有apache的操作,比如在这可以找到处理..
分类:
Web程序 时间:
2015-04-14 20:12:28
阅读次数:
132
ZOJ 2836 Number Puzzle(容斥原理啊)...
分类:
其他好文 时间:
2015-04-14 19:43:21
阅读次数:
164
CREATE OR REPLACE FUNCTION num2rmb(Pi_MONEY NVARCHAR2) RETURN NVARCHAR2 IS -- PURPOSE :返回人民币大写方式 v_NUM NUMBER; I NUMBER; J NUMBER; K NUMBER; L NUMBER;...
分类:
其他好文 时间:
2015-04-14 19:32:57
阅读次数:
197
问题描述In the New Year 2014, Xiao Ming is thinking about the question: give two integers N and K, Calculate the number of the numbers of satisfy the following conditions:
It is a positive integer and is n...
分类:
其他好文 时间:
2015-04-14 16:42:31
阅读次数:
119
今天看了3个这种题了 枚举第一行即可 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define ...
分类:
其他好文 时间:
2015-04-14 16:17:08
阅读次数:
105
题意 动态查询第K大的数
用小数在前优先队列维护K个数 每要插入一个数时 若这个数小于队首元素那么就不用插入了 否则队首元素出队 这个数入队 每次询问只用输出队首元素就行了
#include
#include
using namespace std;
int main()
{
int n, a, k;
char op[5];
while(~scanf("%d%...
分类:
其他好文 时间:
2015-04-14 14:45:18
阅读次数:
175