发现其实有关gcd的题目还是挺多的,这里根据做题顺序写出8题。[bzoj2818: Gcd] gcd(x,y)=质数, 1#include const int MAXN = 10000001;int n, primes;long long prime[MAXN], phi[MAXN];bool co...
分类:
其他好文 时间:
2014-06-25 22:12:36
阅读次数:
317
1. 按两下返回键退出 代码如下: private long exitTime = 0; @Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) { ExitApp(); return false;}public void Exi...
分类:
其他好文 时间:
2014-06-24 13:43:40
阅读次数:
180
简单的小技巧: 介绍如何在虚拟机VirtualBox 中打开共享文件夹(小技巧,高手勿入)。
To you, maybe too easy ,maybe not. Hope it will help you ....
分类:
其他好文 时间:
2014-06-22 22:14:41
阅读次数:
221
驱动代码内部相关关键字等如KillTimer、 LPVOID —指针、BOOL和bool、NEW分配内存
、HWND、UNIT、、__cdecl 、_stdcall、PASCAL 、_fastcall、_thiscall的区别与联系、
typedef LONG_PTR LPARAM;typedef UINT_PTR WPARAM;等...
分类:
其他好文 时间:
2014-06-22 21:18:54
阅读次数:
244
解决svn:This client is too old问题
1、下载官方的python文件
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py
2、下载安装python,执行python文件时有用 ,下载地址:http://code.go...
分类:
其他好文 时间:
2014-06-22 18:36:10
阅读次数:
354
1 enqueueMessage
handler发送一条消息
mHandler.sendEmptyMessage(1);
经过层层调用,进入到sendMessageAtTime函数块,最后调用到enqueueMessage
Handler.java
public boolean sendMessageAtTime(Message msg, long uptimeMil...
分类:
移动开发 时间:
2014-06-22 17:11:16
阅读次数:
252
对于Python 的脚本传参,很多人可能都会使用 ( ... , ... ) = sys.argv ,但是如果你想更轻松更随性的传递参数呢? 比如说我们 可以使用 python argv.py -a 123 -path '/home/long/path' -c=123 这样的传递参数。 或者想要更佳绚丽的help 界面。
本文简介一个很简单的实现这种随便带参的方法,相信能够抛砖引玉 :)...
分类:
编程语言 时间:
2014-06-22 17:05:40
阅读次数:
259
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large
解决:
vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件
client_max_body_size 20m; ‘在http段落里添加这一句后保存退出
/usr/local/nginx/sbin/nginx -s reload...
分类:
其他好文 时间:
2014-06-22 14:38:34
阅读次数:
203
一、Thread调度的概述
import java.util.*;
import java.text.*;
public class Task implements Runnable {
long n;
String id;
private long fib(long n) {
if (n == 0)
return 0L;
...
分类:
编程语言 时间:
2014-06-22 14:15:04
阅读次数:
298
如果不需要求边的个数的话,就是一个裸的最小割问题。
求边的个数就用边的权值记录一下。
#include
#include
#include
#include
#include
using namespace std;
#define INF 99999999
#define LL long long
const LL maxn =55;
const LL maxm =4400;
con...
分类:
其他好文 时间:
2014-06-22 11:15:00
阅读次数:
167