上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 56 下一页
摘要: Find Metal MineralTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 1744Accepted Submission(s): 774Problem DescriptionHumans have discovered a kind of new metal mineral on Mars which are distributed in point‐like with paths connecting each of them wh 阅读全文
posted @ 2013-05-21 12:42 Jack Ge 阅读(191) 评论(0) 推荐(0) 编辑
摘要: The more, The BetterTime Limit: 6000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3784Accepted Submission(s): 2230Problem DescriptionACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M个城堡并获得里面的宝物。但由于地理位置原因,有些城堡不能直接攻克,要攻克这些城堡必须先攻克其他某一个特定的城堡。你能帮ACboy算出要获得尽量多 阅读全文
posted @ 2013-05-21 12:09 Jack Ge 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Strategic GameTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3580Accepted Submission(s): 1573Problem DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is v 阅读全文
posted @ 2013-05-21 11:46 Jack Ge 阅读(509) 评论(0) 推荐(0) 编辑
摘要: Anniversary partyTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2668Accepted Submission(s): 1192Problem DescriptionThere is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical stru 阅读全文
posted @ 2013-05-21 10:10 Jack Ge 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Stern-Brocot TreeTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 251Accepted Submission(s): 159Problem Description 上图是一棵Stern-Brocot树,其生成规则如下: 从第1行到第n行,每行相邻两数a/b和c/d,产生中间数(a+c)/(b+d),置于下一行中。将一行的分数(包括0/1,1/0),进行约分简化,则每一行(包括0/1,1/0,1/1),不会出现两个相... 阅读全文
posted @ 2013-05-21 09:26 Jack Ge 阅读(1432) 评论(0) 推荐(0) 编辑
摘要: 原文地址链接: http://blog.sina.com.cn/s/blog_5e32cc130100fszx.html2, 【用Python写爬虫】获取html的方法【二】:使用pycurl# Pycurl参考地址:http://pycurl.sourceforge.net/# Pycurl下载地址:http://pycurl.sourceforge.net/download/pycurl-7.18.1.tar.gz#!/usr/bin/python#coding:utf8import pycurlimport StringIOdef getURLContent_pycurl(url): . 阅读全文
posted @ 2013-05-20 19:32 Jack Ge 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 把github上的help略略翻译一遍。备忘。First : 安装:ubuntu 下,终端输入命令:sudo apt-get install git-core git-gui git-docNext : 设置SSH Key检查是否已经有SSH Key。$cd ~/.ssh如果说没有这个目录,就直接看第三步备份生成一个新的SSH。$ssh-keygen -t rsa -C "email"之后直接回车,不用填写东西。之后会让你输入密码。然后就生成一个目录.ssh ,里面有两个文件:id_rsa , id_rsa.pub把这个SSH放到github上。用公钥。先在GitHub上注 阅读全文
posted @ 2013-05-20 06:57 Jack Ge 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 美素数Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 374Accepted Submission(s): 159Problem Description 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能计算出这个区间内有... 阅读全文
posted @ 2013-05-19 22:03 Jack Ge 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 具体介绍看链接: http://www.linuxidc.com/Linux/2011-08/40792.htm使用Eclipse编辑文件经常出现中文乱码或者文件中有中文不能保存的问题,Eclipse提供了灵活的设置文件编码格式的选项,我们可以通过设置编码 格式解决乱码问题。在Eclipse可以从几个层面设置编码格式:Workspace、Project、Content Type、File 本文以Eclipse 3.3(英文)为例加以说明: 1. 设置Workspace的编码格式: Windows->Preferences... 打开"首选项"窗口,点击左侧导航树到Ge 阅读全文
posted @ 2013-05-19 16:39 Jack Ge 阅读(4036) 评论(0) 推荐(1) 编辑
摘要: 1737 - Play the Dicehttp://icpc.njust.edu.cn/Local/1737时间限制:2000 MS内存限制:65535 MB问题描述There is a dice withN sides, which are numbered from 1,2,...,n and have the equal possibility to show up when one rolls a dice. Each side has an integer Aion it. Now here is a game that you can roll this dice once, i 阅读全文
posted @ 2013-05-19 10:39 Jack Ge 阅读(520) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 56 下一页