rmp包http://download.opensuse.org/repositories/home:/colomboem/CentOS_7/x86_64/dukto-6.0-13.1.x86_64.rpm# rpm -iv dukto-6.0-13.1.x86_64.rpm 警告:dukto-6....
分类:
其他好文 时间:
2015-03-13 23:39:38
阅读次数:
412
传送门:Ignatius and the Princess IV题意:给n个数,找出出现次数大于等于(n+1)/2的那个数。分析:大水题,排个序输出中间那个即可,这里随便写个HASHMAP找出次数最大那个。#include #include #include #define N 1000010#de...
分类:
其他好文 时间:
2015-03-11 00:40:33
阅读次数:
130
http://poj.org/problem?id=3207题意:一个圆上顺时针依次排列着标号为1~n的点,这些点之间共有m条边相连,每两个点只能在圆内或者圆外连边。问是否存在这些边不相交的方案。(n#include #include #include #include using namespac...
分类:
其他好文 时间:
2015-03-10 07:52:38
阅读次数:
178
H - Treasure Hunt IV Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluDescription Alice is exploring the wonderland, suddenly she f.....
分类:
其他好文 时间:
2015-03-07 15:22:29
阅读次数:
125
Sub Md()'' Macro1 Macro' 宏由 BX 录制,时间: 2012-6-8' 宏中的列数可以输入 A - IV 也可以输入 1-256'Dim i%, j%, i1%, j1%, i2%, j2%myi = UCase(InputBox("第一列"))myj = UCase(Inp...
分类:
编程语言 时间:
2015-03-02 10:52:49
阅读次数:
200
http://en.wikipedia.org/wiki/Chlorine_dioxideChlorine dioxideNamesIUPAC nameChlorine dioxideOther namesChlorine(IV) oxideChlorylIdentifiersCAS number1...
分类:
其他好文 时间:
2015-03-02 00:55:45
阅读次数:
298
类似POJ1386,参考的大神的博客首先明确思路:是否为连通图(并查集解决) -> 是否存在欧拉路径 -> 是否存在欧拉回路 (是,则选取字典序最小的输出,否则直接输出可行解)注意区分有向图和无线图存在欧拉路径或者欧拉回路的条件:有向图: 1 #include 2 #include 3 #i...
分类:
其他好文 时间:
2015-02-25 22:23:57
阅读次数:
179
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3416题目描述:求起点到终点一共有多少完全不同的最短路径(最短路径之间不能有公共边)思路:先用dijkstra求出起点到终点的最短路,然后用可以成为最短路径的边(dis[终]-dis[始]==权值)建立网...
分类:
其他好文 时间:
2015-02-22 17:14:39
阅读次数:
232
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2015-02-18 15:11:36
阅读次数:
142
传送门:Ikki's Story IV - Panda's Trick题意:给定一个圆,圆上一些点。两点一线。现给出一些线,这些线可以在圆内连起来,也可以在圆外。问有没有可能所有的线画完且不出现相交。分析:对于每条线,要么在圆外,要么在圆内,且不可同时满足,只能两者取一,判断这M条线是否合法,也就是...
分类:
其他好文 时间:
2015-02-09 22:56:18
阅读次数:
131