码迷,mamicode.com
首页 >  
搜索关键字:欧拉    ( 2880个结果
POJ 2513(字典树hash+并查集+欧拉通路)
Colored Sticks Time Limit: 5000MS   Memory Limit: 128000K Total Submissions: 31015   Accepted: 8180 Description You are given a bunch of wooden sticks. Each endpoint of e...
分类:其他好文   时间:2014-10-22 01:09:19    阅读次数:193
ZOJ2016 POJ1386(有向图的欧拉路判断)
Play on Words Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 9710   Accepted: 3352 Description Some of the secret doors contain a very interesting word puzz...
分类:其他好文   时间:2014-10-22 01:08:22    阅读次数:183
POJ1300(欧拉回路)
Door Man Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 2139   Accepted: 858 Description You are a butler in a large mansion. This mansion has so many rooms...
分类:其他好文   时间:2014-10-22 01:07:22    阅读次数:399
UVALive 3263 That Nice Euler Circuit 计算几何欧拉定理
欧拉定理:P+F-E=2 That Nice Euler Circuit Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description Little Joey inve...
分类:其他好文   时间:2014-10-21 13:51:41    阅读次数:253
UVa 10299 - Relatives
题目:计算一个给定数的欧拉函数(1~n-1中和n互质的数的个数)。 分析:数论,素数筛法,欧拉函数。             欧拉函数:φ(n)= n *(1 - 1/p1)*(1 - 1/p2)*(1 - 1/p3)*…*(1 - 1/pt);             这里利用筛法打表计算出50000内的素数,因为数据范围是1000000000内的,             所以,不...
分类:其他好文   时间:2014-10-21 12:25:42    阅读次数:279
编程验证哥德巴赫猜想
1、什么是哥德巴赫猜想 在1742年给欧拉的信中哥德巴赫提出了以下猜想:任一大于2的整数都可写成三个质数之和。因现今数学界已经不使用“1也是素数”这个约定,原初猜想的现代陈述为:任一大于5的整数都可写成三个质数之和。欧拉在回信中也提出另一等价版本,即任一大于2的偶数都可写成两个质数之和。今日常见的猜想陈述为欧拉的版本。把命题"任一充分大的偶数都可以表示成为一个素因子个数不超过a个的数与另一个...
分类:其他好文   时间:2014-10-20 11:43:02    阅读次数:204
HDU3307 Description has only two Sentences 欧拉函数 欧拉定理
Description has only two SentencesTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Problem Descriptionan = X*an-1 + Y a....
分类:其他好文   时间:2014-10-19 21:17:00    阅读次数:248
USACO 3.3 fence 欧拉回路
题意:求给定图的欧拉回路(每条边只走一次)若欧拉回路存在,图中只可能有0个or2个奇数度的点。求解时,若有奇数度的点,则必须从该点开始。否则可以从任一点开始求解过程:dfs 1 //主程序部分 2 # circuit is a global array 3 find_euler_circuit...
分类:其他好文   时间:2014-10-19 21:08:02    阅读次数:117
欧拉计划 NO05 ps:4题想过,好做,但麻烦,有时间补充,这题也不难!
问题重述: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive num...
分类:其他好文   时间:2014-10-19 16:59:06    阅读次数:232
POJ 2154
这题的时间卡的。。。。必须用欧拉来优化,而且要加素数表。最重要是,因为最后结果要/n,而数据很大,所以,必须在之前就先/n了,否则会爆数据。#include #include #include #include #include #define LL __int64using namespace s...
分类:其他好文   时间:2014-10-17 11:37:58    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!