using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.... ...
/*3-6.程序员;龚猛*/ 1 package zhenshu; 2 import java.util.Scanner; 3 public class text { 4 5 public static void main(String[] args) { 6 Scanner input = new... ...
分类:
其他好文 时间:
2017-10-15 22:34:51
阅读次数:
186
升级python2.7 wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz mkdir /usr/local/python27 ./configure --prefix=/usr/local/python27 Make Make ...
分类:
编程语言 时间:
2017-10-15 22:29:27
阅读次数:
152
http://acm.split.hdu.edu.cn/showproblem.php?pid=5919 题意:给出一串序列,每次给出区间,求出该区间内不同数的个数k和第一个数出现的位置(将这些位置组成一个新的序列),输出这里面的第ceil(k/2)个数。 思路: 因为每个区间只需要统计第一个数出现 ...
分类:
其他好文 时间:
2017-10-15 22:28:14
阅读次数:
260
题目描述 现在有一堆数字共N个数字(N<=10^6),以及一个大小为k的窗口。现在这个从左边开始向右滑动,每次滑动一个单位,求出每次滑动后窗口中的最大值和最小值。 例如: The array is [1 3 -1 -3 5 3 6 7], and k = 3. 输入输出格式 输入格式: 输入一共有两 ...
分类:
其他好文 时间:
2017-10-15 22:27:40
阅读次数:
164
给定一个字符串,你可以对字符串做任意改动,你可以在任意地方增加一个字符、删除一个字符或者改变一个字符。但是不同的操作所花费的代价也是不同的,增加和删除所付出的代价为1,直接改变一个字符所花费的代价为2,问最少花费多少能得到一个回文串(回文串就是从左往右读和从右往左是一样的,例如:ABCBA、HIH… ...
分类:
其他好文 时间:
2017-10-15 21:31:33
阅读次数:
168
转自:http://www.cftea.com/c/2016/11/6704.asp OAuth 白话简明教程-简述 OAuth 白话简明教程-授权码模式(Authorization Code) OAuth 白话简明教程-客户端模式(Client Credentials) OAuth 白话简明教程- ...
分类:
其他好文 时间:
2017-10-15 21:30:01
阅读次数:
200
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 struct Point 10 { 11 bool flag; 12 double x; 13 ... ...
分类:
其他好文 时间:
2017-10-15 21:19:21
阅读次数:
165
转自:http://www.cftea.com/c/2016/11/6703.asp OAuth 白话简明教程-简述 OAuth 白话简明教程-授权码模式(Authorization Code) OAuth 白话简明教程-客户端模式(Client Credentials) OAuth 白话简明教程- ...
分类:
其他好文 时间:
2017-10-15 21:13:24
阅读次数:
262