$$求解x^n\equiv a(\%P),其中P是质数,0\leq x<P$$设$g$是$P$的原根那么$g^0,g^1,...,g^{P-2}$和$1,2,...,P-1$是一一对应的。令$x=g^y$,$a=g^t$。其中解$a=g^t$可以用离散对数,如果$P$不是很大的话,我们也可以用一个m...
分类:
其他好文 时间:
2015-09-15 23:06:08
阅读次数:
170
本次作业deadline: 2015-9-22 10:00pm说明:因教材与《构建之法》章节间的略差别,因此将结对项目的第一阶段提前到个人项目之前。待描述过单元测试、效能分析、PSP后,布置个人项目。一、阅读《构建之法》第3章和第8章的内容,并在下方作业里体现出阅读后的成果。特别是第8章中的NABC...
分类:
其他好文 时间:
2015-09-15 23:07:05
阅读次数:
194
Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For examp...
分类:
其他好文 时间:
2015-09-15 23:06:33
阅读次数:
122
css code:.menu{ list-style-type: none; padding: 0; margin: 0; display: flex; flex-flow: row wrap;}.menu li{ height: 40px; text-al...
分类:
其他好文 时间:
2015-09-15 23:07:22
阅读次数:
229
C. Bear and PokerLimak is an old brown bear. He often plays poker with his friends. Today they went to a casino. There are n players (including Limak ...
分类:
其他好文 时间:
2015-09-15 23:04:50
阅读次数:
186
配置hadoop,主要是配置core-site.xml,hdfs-site.xml,mapred-site.xml三个配置文件,默认下来,这些配置文件都是空的,所以很难知道这些配置文件有哪些配置可以生效,上网找的配置可能因为各个hadoop版本不同,导致无法生效。浏览更多的配置,有两个方法:1.选择...
分类:
其他好文 时间:
2015-09-15 23:04:50
阅读次数:
208
# -*- coding: utf-8 -*-import urllib2import reimport osimport sqlite3import winsound# 打开数据库文件ppdai_db = sqlite3.connect(r'C:\Users\Jian Fang\Desktop\p...
分类:
其他好文 时间:
2015-09-15 23:06:40
阅读次数:
299
于cocos2dx反过来,我们所熟悉的控制台输出,可以查看日志,例如C介面printf();性能。int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, ...
分类:
其他好文 时间:
2015-09-15 23:05:46
阅读次数:
123
Problem DescriptionJack likes to travel around the world, but he doesn’t like to wait. Now, he is traveling in the Undirected Kingdom. There arencitie...
分类:
其他好文 时间:
2015-09-15 23:05:46
阅读次数:
167
步骤:1.创建一个Hello World模块2.为这个模块配置路由3.为这个模块创建执行控制器创建Hello World模块创建模块的结构目录:app/core/local/Sjolzy/HelloWorld/Blockapp/core/local/Sjolzy/HelloWorld/control...
分类:
其他好文 时间:
2015-09-15 23:04:07
阅读次数:
125
#pragma?mark?-
#pragma?mark?Table?view?data?source
//tableView?有多少个?section
-?(NSInteger)numberOfSectionsInTableView:(UITableView?*)tableView?{
????//?Return?the?number?of?...
分类:
其他好文 时间:
2015-09-15 22:02:06
阅读次数:
191
查看ssh服务是否安装?[root@localhost?~]#?rpm?-qa?|grep?-E?‘(ssh.*server|server.*ssh)‘
openssh-server-5.3p1-70.el6.i686
查看配置文件
[root@localhost?~]#?rpm?-qc?openssh-server
/etc/pam.d/s...
分类:
其他好文 时间:
2015-09-15 22:02:42
阅读次数:
151
解决办法: 1、使用div,设置z-index为负数,并使此div大小为整个body的大小; 2、div里放个<img>标签,显示图片; 3、body标签的background属性去掉 具体见代码: <div?style="position:absolute;?width:100...
分类:
其他好文 时间:
2015-09-15 22:00:34
阅读次数:
148
话说,在前面两篇文章中,我们学习了BitmapShader、Path的基本使用,那么这一篇文章,咱们接着来学习一下PathMeasure的用法。什么,你没听说过PathMeasure?那你就要OUT咯~
项目效果图
PathMeasure介绍
更多参考资料
项目效果图
废话不多说,在开始讲解之前,先看下最终实现的效果。
效果一:
仿支付宝支付成功效果
效果...
分类:
其他好文 时间:
2015-09-15 22:00:52
阅读次数:
242
代码比较乱,没有好的整理。sharepreferences实现数据的存储(不太好用),swipeListView实现的左划删除。
分类:
其他好文 时间:
2015-09-15 21:57:15
阅读次数:
120
TCP协议下,客户的和服务器的连接过程称为“三次握手”第一次握手:建立连接时,客户的发送SYN包到服务器,并进入SYN_SEND状态,等待服务器确认。第二次握手:服务器收到SYN包,必须确认客户的SYN包,同时自己也发送一个SYN包,即SYN+ACK包,此时服务器进入SYN_RECV状态。第三次握手...
分类:
其他好文 时间:
2015-09-15 21:58:33
阅读次数:
227
刷CCF中。。。问题描述 目前在一个很大的平面房间里有 n 个无线路由器,每个无线路由器都固定在某个点上。任何两个无线路由器只要距离不超过 r 就能互相建立网络连接。 除此以外,另有 m 个可以摆放无线路由器的位置。你可以在这些位置中选择至多 k 个增设新的路由器。 你的目标是使得第 1 个路...
分类:
其他好文 时间:
2015-09-15 21:57:11
阅读次数:
292