在数论,对正整数n,欧拉函数是小于n的数中与n互质的数的数目。首先我们给出欧拉函数的通式:其中p1, p2……pk为n的所有质因数,n是不为0的整数。以上式子是如何得到的呢?下面给出证明:先将n分解质因数为然后利用容斥原理来减去p1、p2……pk的倍数的个数,即。然后我们加上同时时两个因数的倍数的数...
分类:
其他 时间:
2016-01-27 14:26:29
收藏:
0 评论:
0 赞:
0 阅读:
141
(很多命令功能列的不全,列出来的只是暂时自己掌握的部分,更新中)ls:查看当前目录下的文件 -a包涵隐藏文件 -mcd name:转到name目录mkdir name:在当前目录下创建name的新目录cat:查看文件内容uname -a:显示系统版本信息 clear:清屏>:定向输出到文件 e...
分类:
其他 时间:
2016-01-27 14:26:03
收藏:
0 评论:
0 赞:
0 阅读:
117
document.compatMode 获得文档模式,IE对盒模型的渲染在 Standards Mode和Quirks Mode是有很大差别两种模式:当document.compatMode等于BackCompat时,浏览器客户区宽度是document.body.clientWidth;当docum...
分类:
其他 时间:
2016-01-27 14:25:29
收藏:
0 评论:
0 赞:
0 阅读:
144
转自:http://www.cnblogs.com/richieyang/p/5041883.html系列主题:基于消息的软件架构模型演变NServiceBus 是一个.Net平台下开源的消息服务框架,这类产品有时也被称作ESB(Enterprise Service Bus)——企业服务总线。NSe...
分类:
其他 时间:
2016-01-27 14:25:00
收藏:
0 评论:
0 赞:
0 阅读:
445
1 应用场景Mycat 自带了多套数据分片的机制,其实根据数值取摸应该是最简单的一种。优点:数据离散概率较为平均,可以有效的提高应用的数据吞吐。缺点:比较明显,后期数据运维与迁移比较困难。好在Mycat有对应的解决方案,具体后期验证或可直接参考Mycat权威指南相应章节。2 环境说明参考 《MyCa...
分类:
其他 时间:
2016-01-27 14:24:51
收藏:
0 评论:
0 赞:
0 阅读:
297
Ruby是一种功能强大的面向对象的脚本语言Gem是一个管理Ruby库和程序的标准包,它通过Ruby Gem(如 http://rubygems.org/ )源来查找、安装、升级和卸载软件包,非常的便捷。CocoaPods是iOS最常用最有名的类库管理工具安装cocoapods1.移除ruby的源地址...
分类:
其他 时间:
2016-01-27 14:24:40
收藏:
0 评论:
0 赞:
0 阅读:
308
题目不难,逆时针的时候注意,wa了好多次wa的代码,错误 1 #include 2 #include 3 using namespace std; 4 struct Point{ 5 int x;int y; 6 }p[3]; 7 int main() 8 { 9 char c[...
分类:
其他 时间:
2016-01-27 14:24:00
收藏:
0 评论:
0 赞:
0 阅读:
337
var q = from u in dt_data.AsEnumerable()group u by u.Field("Code");//分组信息foreach (var gp in q){ sb.AppendLine(gp.Key); //每个分组内的信息 foreach (var item...
分类:
其他 时间:
2016-01-27 14:23:32
收藏:
0 评论:
0 赞:
0 阅读:
173
lua命令:#enter shelllua#excute script filelua xxx.lualua脚本:#!/usr/local/bin/lua核心概念:As a extension language, Lua has no notion of a 'Main’program: it on...
分类:
其他 时间:
2016-01-27 14:23:20
收藏:
0 评论:
0 赞:
0 阅读:
339
在使用AFN访问网络的时候,报错com.alamofire.error.serialization.response Code=-1016。这个问题是由于后台PHP的问题,请联系后台开发人员,添加header('Content-type: application/json');
分类:
其他 时间:
2016-01-27 14:23:10
收藏:
0 评论:
0 赞:
0 阅读:
202
先上效果上ShaderShader "Unlit/Transparent Colored Flow Texture"{ Properties { _MainTex ("Base (RGB), Alpha (A)", 2D) = "black" {} _FlashTex("Flash (RGB),.....
分类:
其他 时间:
2016-01-27 14:22:39
收藏:
0 评论:
0 赞:
0 阅读:
222
本篇将介绍在docker在windows,macosx,linux上的安装。目录:1.windows/macosx安装docker2.linux安装docker(CentOS and Ubuntu)3.测试4.参考资料1.windows/macosx安装docker *Windows 7.1, 8....
分类:
其他 时间:
2016-01-27 14:22:30
收藏:
0 评论:
0 赞:
0 阅读:
187
Chapter 1. Arrays and Strings1.1 Unique Characters of a String1.2 Reverse String1.3 Permutation String1.4 Replace Spaces1.5 Compress String1.6 Rotate ...
分类:
其他 时间:
2016-01-27 14:22:20
收藏:
0 评论:
0 赞:
0 阅读:
232
touchmove在安卓浏览器上只会触发一次,需要preventDefault()touchmove events in Android web browsers have a really serious bug. If you don't include the following code, ...
分类:
其他 时间:
2016-01-27 14:21:53
收藏:
0 评论:
0 赞:
0 阅读:
194
ECMA-262 把本地对象(native object)定义为“独立于宿主环境的 ECMAScript 实现提供的对象”。Object、Function、Array、String、Boolean、Number、Date、RegExp、Error、EvalError、RangeError、Refer...
分类:
其他 时间:
2016-01-27 14:21:40
收藏:
0 评论:
0 赞:
0 阅读:
219
Problem Description输入n(n 2 #define maxsize 100 3 int qiuzuixiao(int a[],int n){ 4 int min=*a; 5 int k=0; 6 for(int i=1;ia[i]){ 8 ...
分类:
其他 时间:
2016-01-27 14:21:37
收藏:
0 评论:
0 赞:
0 阅读:
288
-webkit-transform: translateZ(0);-webkit-transform: translate3d(0,0,0);作用:1、切换到硬件合成模式,通常所有事情都CPU完成,硬件影像合成模式会将指定元素传给GPU 处理2、创建一个新的图层,带有自己的backing surfa...
分类:
其他 时间:
2016-01-27 14:21:23
收藏:
0 评论:
0 赞:
0 阅读:
168
默认的复选框样式一般在项目中都很少用 ,看起来也丑丑的。这里提供一个优化样式后的复选框。原理就是隐藏掉默认样式,在用设计好的样式替代 html结构 全选 js调用$("#checkbox1").checkbox({reqUnit:function() { console...
分类:
其他 时间:
2016-01-27 14:20:59
收藏:
0 评论:
0 赞:
0 阅读:
219
/** 隐藏 返回键 的做法,将title置为空 */ self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@" " style:UIBarButtonItemStylePlain targ...
分类:
其他 时间:
2016-01-27 14:20:22
收藏:
0 评论:
0 赞:
0 阅读:
169
方法一:var foo = function () {//code}方法二:function foo () {//code}方法一:foo在进入函数执行上下文开始执行代码的时候,foo是undefined的,执行完var foo = function () { }这句,foo才会得到赋值;方法二:在...
分类:
其他 时间:
2016-01-27 14:19:50
收藏:
0 评论:
0 赞:
0 阅读:
245