【题目描述】 给出n个数,统计两两之和小于k的方案数之和。 【题目描述】 给出n个数,统计两两之和小于k的方案数之和。 给出n个数,统计两两之和小于k的方案数之和。 【输入描述】 第一行一个数n,表示数字的个数; 第二行到第n + 1行,每行一个不超过2,000,000,000的数k; 第n+2行一 ...
分类:
其他好文 时间:
2016-06-05 08:39:52
阅读次数:
188
原文地址:http://www.cnblogs.com/duzouzhe/archive/2010/01/12/1645191.html STL的容器可以分为以下几个大类: 一:序列容器 : vector, list, deque, string. 二 : 关联容器 : set, multiset, ...
分类:
其他好文 时间:
2016-06-05 08:40:11
阅读次数:
122
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... Example:(1) Given nums = [1, 5, 1, 1, 6, 4], one possible ...
分类:
其他好文 时间:
2016-06-05 08:41:10
阅读次数:
189
现在几点了? namescape consoleApplication { class Program { static void Main(string[] args) { Console.Write("现在几点了?"); int a =int.parse(Console.ReadLine()); ...
分类:
其他好文 时间:
2016-06-05 07:39:23
阅读次数:
178
多个物体同时运动 ?例子:多个Div,鼠标移入变宽 –单定时器,存在问题 –每个Div一个定时器 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml ...
分类:
其他好文 时间:
2016-06-05 07:39:25
阅读次数:
225
Problem Description
请你编程画一个放大的’X’。
如3*3的’X’应如下所示:X X XX X5*5的’X’如下所示:X X X X X X XX XInput
输入数据第一行是一个整数T,表示有T组测试数据;
接下来有T行,每行有一个正奇数n(3 <= n <= 79),表示放大的规格。Output
对于每一个n打印一个规格为n * n放大的’X’;每组输出...
分类:
其他好文 时间:
2016-06-05 06:36:11
阅读次数:
207
Problem Description
The Romans used letters from their Latin alphabet to represent each of the seven numerals in their number system. The list below shows which
letters they used and what numeric val...
分类:
其他好文 时间:
2016-06-05 06:36:19
阅读次数:
176
Problem Description
定义:一个词组中每个单词的首字母的大写组合称为该词组的缩写。
比如,C语言里常用的EOF就是end of file的缩写。Input
输入的第一行是一个整数T,表示一共有T组测试数据;
接下来有T行,每组测试数据占一行,每行有一个词组,每个词组由一个或多个单词组成;每组的单词个数不超过10个,每个单词有一个或多个大写或小写字母组成;
单词长度不超过1...
分类:
其他好文 时间:
2016-06-05 06:35:49
阅读次数:
274
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam ...
分类:
其他好文 时间:
2016-06-05 06:35:26
阅读次数:
164
import pandas as pd import numpy as np df1 = pd.DataFrame(np.array([['a', 5, 9], ['b', 4, 61], ['c', 24, 9]]), columns = ['name', 'attr11', 'attr12'])... ...
分类:
其他好文 时间:
2016-06-05 06:32:27
阅读次数:
1697
运动基础 ?让Div运动起来 ?速度——物体运动的快慢 ?运动中的Bug –不会停止 –速度取某些值会无法停止 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT ...
分类:
其他好文 时间:
2016-06-05 06:34:27
阅读次数:
222