题目链接构造矩阵 看的题解,剩下的就是模板了,好久没写过了,注意取余。#include
#include #include #include #include #include #include using namespace
std;#define MOD 10007#define LL __in...
分类:
其他好文 时间:
2014-05-10 19:55:41
阅读次数:
262
题目如下:
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the pile.
What a wonderful v...
分类:
其他好文 时间:
2014-05-09 06:20:44
阅读次数:
396
今天遇到RT这个问题后,导致数据库错误,然后在国外网站发现了一个解决方法,记录如下:原因是:多个Mysql进程使用了同一个socket。解决方法是:直接把mysql.sock文件改名即可。也可以删除,推荐改名。SSH里输入下列命令即可解决:#
mv /var/lib/mysql/mysql.sock...
分类:
数据库 时间:
2014-05-08 13:08:22
阅读次数:
293
The Ball And Cups
At the end of a busy day, The Chef and his assistants play a game together. The game is not just for fun but also used to decide who will have to clean the kitchen. The Chef...
分类:
其他好文 时间:
2014-05-07 07:41:32
阅读次数:
448
Beaming NDEF Messages to Other Devices
Android Beam allows simple peer-to-peer data exchange between two Android-powered devices. The application that wants to beam data to another device must be in ...
分类:
移动开发 时间:
2014-05-06 23:21:48
阅读次数:
620
Problem Description
Given an positive integer A (1
For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2.
Another example...
分类:
其他好文 时间:
2014-05-05 13:22:39
阅读次数:
394
Post-Recovery Test Run Options Screen When you
clear the Add another recovery operation check box in the Recovery Operation
screen and click next, the...
分类:
其他好文 时间:
2014-05-04 19:37:19
阅读次数:
571
题目
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2...
分类:
其他好文 时间:
2014-05-04 18:34:44
阅读次数:
272
强制关掉yum进程:#rm-f/var/run/yum.pid然后就可以使用yum了。
分类:
移动开发 时间:
2014-05-02 04:18:15
阅读次数:
371
RecursionIt is legal for one function to call
another; it is also legal for a function to call itself. It may not be obvious
why what is a good thing,...
分类:
其他好文 时间:
2014-05-01 18:40:44
阅读次数:
302