今天要用yum安装软件,于是yum install ***,但是报错,错误如下:There was a problem importing one of the Python modules required to run yum. The error leading to this problem...
分类:
其他好文 时间:
2014-07-07 14:55:42
阅读次数:
350
Problem Description:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tre...
分类:
其他好文 时间:
2014-07-07 13:27:35
阅读次数:
207
题目在这:http://poj.org/problem?id=1151AtlantisTime Limit:1000MSMemory Limit:10000KDescriptionThere are several ancient Greek texts that contain descripti...
分类:
其他好文 时间:
2014-07-07 13:04:50
阅读次数:
157
原题: URAL 1091 http://acm.timus.ru/problem.aspx?space=1&num=1091题意:要求找出K个不同的数字使他们有一个大于1的公约数,且所有的数字都不能大于一个指定的数字S。解法:可以考虑每个S内的素数,此素数和它的所有倍数构成一个集合,则可以在这些集...
分类:
其他好文 时间:
2014-07-02 00:37:32
阅读次数:
253
JAVA大数....
Children’s Queue
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 10390 Accepted Submission(s): 3333
Problem Descrip...
分类:
其他好文 时间:
2014-06-30 18:26:44
阅读次数:
203
JAVA大数....
大明A+B
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7763 Accepted Submission(s): 2748
Problem Description
话说,经...
分类:
其他好文 时间:
2014-06-30 17:55:02
阅读次数:
179
11490 - Just Another Problem
题目链接
题意:有S个士兵,排成一个矩阵,矩阵中可以有两个洞,要求两个洞上下左右厚度一样,问能缺少士兵的情况数。
思路:推推公式,设厚度为a, 正方形为i, 那么(3 a + 2 i) (2
a + i) = S + 2 i i;
化简一下得到6 i i + 7 a i = S
由于S很大,所以去枚举厚度,这样只要...
分类:
其他好文 时间:
2014-06-30 17:06:42
阅读次数:
189
题目地址:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1269
Jamie is a very popular girl and has quite a lot of friends, so she always keeps a v...
分类:
其他好文 时间:
2014-06-30 16:55:26
阅读次数:
374
题目链接:Codeforces 442B Andrey and Problem
题目大意:Andrey有一个问题,想要朋友们为自己出一道题,现在他有n个朋友,每个朋友想出题目的概率为pi,但是他可以同时向多个人寻求帮助,不过他只能要一道题,也就是如果他向两个人寻求帮助,如果两个人都成功出题,也是不可以的。
解题思路:贪心,从概率最大的人开始考虑,如果询问他使得概率变大,则要询问。
#...
分类:
其他好文 时间:
2014-06-30 16:36:58
阅读次数:
252
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1480#include #include int n;#define N 100001 //N的值取比哈希表长度略大的(质数)int a[100001],....
分类:
其他好文 时间:
2014-06-30 15:07:41
阅读次数:
145