vareulerAngles:Vector3Description描述The rotation as
Euler angles in degrees.旋转作为欧拉角度。The x, y, and z angles represent a rotation z
degrees around the z...
分类:
其他好文 时间:
2014-07-22 23:15:35
阅读次数:
327
题目链接题意 : 求小于等于n中与n互质的数的个数。思路 :
看数学的时候有一部分是将欧拉函数的,虽然我没怎么看懂,但是模板我记得了,所以直接套了一下模板。这里是欧拉函数的简介。 1 #include 2 #include
3 #include 4 #include 5 #include ...
分类:
其他好文 时间:
2014-05-06 11:58:13
阅读次数:
285
poj1637 判断混合图是否能形成欧拉回路:网络流做奇偶性判断(inspire) 1
//dinic算法: 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 #define
INF 0x3f3f3f3f...
分类:
其他好文 时间:
2014-05-05 23:25:28
阅读次数:
464
HDU 3501 Calculation
2大意:求1~n之间与n不互质的数的总和。思路:欧拉函数的应用;先用欧拉函数求出与n互质的总数m,计算m个数的总和,用n的总和减去m的总和就是想要的结果。 1
#include 2 #define LL __int64 3 4 int eular(int.....
分类:
其他好文 时间:
2014-05-05 10:29:56
阅读次数:
308
题目题意:求小于n并且和n不互质的数的总和。思路:求小于n并且与n互质的数的和为:n*phi[n]/2
.若a和n互质,n-a必定也和n互质(a1是,phi(m)表示比m小且与m互质的正整数个数 1 #include 2 #include 3 #include 4
#include 5 #i...
分类:
其他好文 时间:
2014-05-05 09:50:27
阅读次数:
396
欧拉是数学家心目中的英雄,欧拉积分具有重要的应用。先给出欧拉积分的性质以便为进入分数阶微积分打下基础。1.1
$\beta$函数定义$$B(\alpha,\beta)=\int_{0}^{1}x^{\alpha-1}(1-x)^{\beta-1}dx$$易看出$0$和$1$为奇点,积分在$\alph...
分类:
其他好文 时间:
2014-05-04 11:54:07
阅读次数:
500
仙人掌图(有向):同时满足:1强连通;2任何边不在俩个环中。
个人理解:其实就是环之间相连,两两只有一个公共点,(其实可以缩块),那个公共点是割点。HDU数据弱,网上很多错误代码和解法也可以过。
个人解法:
我认为:
:仙人掌图必然是欧拉图!这样只用“入度=出度”就可以简单地判断强连通(欧拉图显然强连通)了!而且这个必要(不充分)条件还秒杀好多数据(强连通++)。
个人证明...
分类:
其他好文 时间:
2014-05-03 21:38:39
阅读次数:
250
#include
#include
#include
#include
#include
using namespace std;
#define N 20020
struct node{
int from, to, dou, nex;
}edge[N];
int head[N], edgenum;
void add(int u, int v,int dou){
node E={u,v,dou...
分类:
其他好文 时间:
2014-05-03 15:25:32
阅读次数:
340
16、Power digit sum215= 32768 and the sum of its
digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number
21000?题目大意:215= 32768 并且其...
分类:
其他好文 时间:
2014-05-02 13:17:49
阅读次数:
1223
21、Amicable numbersLet d(n) be defined as the sum
of proper divisors ofn(numbers less thannwhich divide evenly inton). If d(a)
=band d(b) =a, whereab,...
分类:
其他好文 时间:
2014-05-02 09:28:12
阅读次数:
776