Calculate a + bInputThe input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.OutputFor each...
分类:
其他好文 时间:
2015-02-07 15:44:43
阅读次数:
183
我希望要一个ArrayList,类似C++中的pair,可是Map.Entry是个接口,不能实例化,能够像以下这样写HashMap G = new HashMap();G.put(1, 9); G.put(4, 6); G.put(2, 8);G.put(3, 7); ArrayList> a...
分类:
编程语言 时间:
2015-02-05 20:21:03
阅读次数:
229
配置key首先创建新的KEYssh-keygen -t rsa -C "your_email@youremail.com"Creates a new ssh key using the provided email Generating public/private rsa key pair.#此处...
分类:
其他好文 时间:
2015-02-05 13:14:08
阅读次数:
153
Topcoder SRM 648 Div1 250
给一个长度为N的"AB"字符串S,S只含有两种字符'A' 或 'B',设pair(i,j)(0=<i<j<N)表示一对 i,j 使得S[i]='A',S[j]='B'。现给定一个K,求字符串S,使得pair(i,j)的个数恰好为K。若不存在,则返回空串。...
分类:
其他好文 时间:
2015-02-03 09:38:17
阅读次数:
156
Topcoder SRM 648 Div2 1000
给一个长度为N的字符串S,S只含有‘A’、'B'、'C'三种元素。给定一个K,要求返回字符串S,使得S中恰好有K对pair(i,j)满足 0=<i<j<N,且 S[i]<S[j]。若不存在,则返回空串。...
分类:
其他好文 时间:
2015-02-03 09:36:18
阅读次数:
234
Catenyms
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9914
Accepted: 2588
Description
A catenym is a pair of words separated by a period such that t...
分类:
其他好文 时间:
2015-01-31 23:17:35
阅读次数:
234
Catenyms
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9887
Accepted: 2583
Description
A catenym is a pair of words separated by a period such that the las...
分类:
其他好文 时间:
2015-01-29 14:37:51
阅读次数:
133
准备:2台机器,ip分别为:192.168.0.195192.168.1.210目的:通过195ssh远程访问210.无需输入密码1、首先在195上生成密钥对。#cd /root/.ssh#ssh-keygen -t rsaGenerating public/private rsa key pair...
分类:
系统相关 时间:
2015-01-29 13:58:40
阅读次数:
268
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'22: Generate Parentheseshttps://oj.leetcode.com/problems/generate-parentheses/Given n pair...
分类:
编程语言 时间:
2015-01-27 23:04:14
阅读次数:
162
好久没写题了,底下代码都比较糟糕,将就着看吧。。507A Amr and Music要学最多的乐器,所以我们贪心选择时间花费少的。注意这里可以直接用pair,就不必写struct的compare函数了 1 #include 2 #include 3 #include 4 using namespac...
分类:
其他好文 时间:
2015-01-25 19:28:01
阅读次数:
204