分类:
其他好文 时间:
2015-02-17 15:12:58
阅读次数:
160
小猴子下落时间限制:3000ms | 内存限制:65535KB难度:3描述有一颗二叉树,最大深度为D,且所有叶子的深度都相同。所有结点从左到右从上到下的编号为1,2,3,·····,2的D次方减1。在结点1处放一个小猴子,它会往下跑。每个内结点上都有一个开关,初始全部关闭,当每次有小猴子跑到一个开关...
分类:
其他好文 时间:
2015-02-17 15:13:31
阅读次数:
173
程序设计语言的选择需要结合具体问题进行分析评价,有实用标准:应用领域、用户要求、系统兼容、可移植性、开发环境。代码的板式:适当的空行、代码行及行内空格、分行及对齐与缩进、命题规则、声明、注释。编程风格在很大程度上影响着程序的可读性、可测试性和可维护性在使用异常处理的过程中,必须十分清楚在没有异常抛出...
分类:
其他好文 时间:
2015-02-17 15:15:06
阅读次数:
132
今天已经是2014年的倒数第二天了,上午把测试的提的坑人的问题复现出来了,至于怎么解决明年再说吧。看园子里很多人都发了2014年的总结,我也跟着总结下我在2014年的生活和工作。总体来说生活和工作还是蛮开心的,总是有一种比上不足比下有余的感觉。2014年是我大学毕业的一年,也是我正式开始工作的一.....
分类:
其他好文 时间:
2015-02-17 15:14:06
阅读次数:
126
#!/usr/bin/envpython#-*-coding:utf-8-*-fromPyQt4.QtCoreimportQtfromPyQt4.QtGuiimportQCompleter,QComboBox,QSortFilterProxyModelclassExtendedComboBox(QC...
分类:
其他好文 时间:
2015-02-17 15:12:38
阅读次数:
585
/**
* 数列的和
* 数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和
*/
import java.util.Scanner;
public class acm2009 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
...
分类:
其他好文 时间:
2015-02-17 14:09:58
阅读次数:
172
import java.util.*;
public class Anagrams问题 {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
while(in.hasNext()){
String a=in.next().toLowerCase();
//转为小写
String b=...
分类:
其他好文 时间:
2015-02-17 14:10:41
阅读次数:
122
题目链接
/*
对于gcd(a,b)=ax+by,存在唯一的x和y使等式成立
*/
#include
int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int s,p;
int a,b,n;
scanf("%d",&s);
while(s--)
{
scanf(...
分类:
其他好文 时间:
2015-02-17 14:10:40
阅读次数:
163
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For ex...
分类:
其他好文 时间:
2015-02-17 14:10:15
阅读次数:
145
解题思路:
建模很简单,不过以前一直用dinic,而这个题目数据偏大,用dinic超时了,据说没有可以卡住SAP的网络流,于是搞到了一套SAP的模版,过了,保存一下模版。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comm...
分类:
其他好文 时间:
2015-02-17 14:09:58
阅读次数:
168
题目大意:
After the Ferries Wheel, many friends hope to receive the Misaki's kiss again,so Misaki numbers them
1,2...N?1,N,if
someone's number is M and satisfied the GCD(N,M)
equals to N
XOR M,he
...
分类:
其他好文 时间:
2015-02-17 14:07:57
阅读次数:
133
Given a list of non negative integers, arrange them such that they form the largest number.
For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.
Note: The result may be ve...
分类:
其他好文 时间:
2015-02-17 14:08:08
阅读次数:
165
Children of the Candy Corn
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10380
Accepted: 4485
Description
The cornfield maze is a popular Halloween t...
分类:
其他好文 时间:
2015-02-17 14:09:21
阅读次数:
207
由于没有自己的服务器,我就找了个能实现双方通信的SDK,这个SDK是友盟的用户反馈SDK。本系列的博文关注的不是网络通信,而是如何在网络通信机制已经做好的情况下,做出一个可用的聊天系统。其实,刚开始做的时候觉得适配器挺难的,但后来发现实现和QQ相同的布局文件也需要技术,所以本篇就来详细的说下布局.....
分类:
其他好文 时间:
2015-02-17 14:07:31
阅读次数:
246
特别是你要为DOCKER窗口设置静态IP,且和公司局域网打成一片的时候,苦逼的测试就会开始,我差不多前前后后测试了四五天,一百多个容器报废。NETNS,NSENTER,PIPWORK,各种镜像合下载之后,想起了去年就是这个时候作的一个在ESXI上再双重虚拟化HYPER-V的情况。混杂模块启用啊啊啊啊...
分类:
其他好文 时间:
2015-02-17 14:04:42
阅读次数:
362
这家公司的Wikihttp://en.wikipedia.org/wiki/Redgatehttp://www.red-gate.com/products/好吧 就介绍点免费的Find SQL fast in SQL Server Management Studiohttp://www.red-ga...
分类:
其他好文 时间:
2015-02-17 14:04:30
阅读次数:
136
现在有很多代码管理平台,例如github,oschina-git,coding.net,我的网速有时候访问github比较慢。这时候我使用国内的。但是只使用一家我已不知道我的代码在他们的管理平台是否足够安全。所以我需要将我的代码同时放到多个平台我本地游一份代码 每次写完后。我同时推送到多个平台去,下...
分类:
其他好文 时间:
2015-02-17 14:04:59
阅读次数:
163