题目链接:点击打开链接
#include
#include
typedef unsigned long long ll;
const int key = (int)(1e9) + 7;
const int N = 150010;
char b[N], a[N + N];
ll xp[N], h[N + N];
int len;
void get() {
char ch;
wh...
分类:
其他好文 时间:
2014-09-18 16:31:24
阅读次数:
170
linux zip 命令详解功能说明:压缩文件。语 法:zip [-AcdDfFghjJKlLmoqrSTuvVwXyz$][-b ][-ll][-n ][-t ][-][压缩文件][文件...][-i ][-x ]补充说明:zip是个使用广泛的压缩程序,文件经它压缩后会另外产生具有".zip"扩展...
分类:
系统相关 时间:
2014-09-18 14:36:24
阅读次数:
370
1.文件权限在Linux终端中,输入命令ll可以查看当前文件夹下所有文件的详细信息,其中,第一列表示的是文件的权限,如drwxrw-r--.第一个字符,可以是“d”,也可以是“-”,“d”表示是一个目录,“-”表示是一个文件。后面的九个字符,分为三组,即rwx,rw-,r--,第一组表示的是..
分类:
系统相关 时间:
2014-09-18 03:15:43
阅读次数:
229
挺水的一题。其实只要理解了RSA算法,就知道要使用大整数分解的方法来直接模拟了。不过,要注意两个INT64的数相乘来超范围#include #include #include #include #include #include #define LL __int64 using namespace ...
分类:
其他好文 时间:
2014-09-17 23:16:32
阅读次数:
246
水。模拟即可。使用EXGCD求逆元#include #include #include #include #define LL __int64using namespace std;LL p,q,e,n,f,d;void exgcd(LL a,LL b,LL &x,LL &y){ if(b==0){...
分类:
其他好文 时间:
2014-09-17 21:52:32
阅读次数:
379
水#include #include #include #include #define LL __int64using namespace std;LL M;LL quick(LL a,LL b){ a%=M; LL ans=1; while(b){ if(b&1) ans=(ans*a)%M.....
分类:
其他好文 时间:
2014-09-17 21:40:52
阅读次数:
159
I am somebody.I was somebody when I came.I'll be a better somebody when I leave.I am powerful, and I am strong. I deserve the education that I get her...
分类:
其他好文 时间:
2014-09-16 23:36:51
阅读次数:
192
原本是《后缀数组——处理字符串的有力工具》论文中的第一道例题,发现自己智商不够,一个下午没有看懂后缀数组= =,就用hash写了#include #include #include #include using namespace std;typedef long long LL;const int...
分类:
其他好文 时间:
2014-09-16 23:31:31
阅读次数:
192
题目地址:HDU 3032
这题是很好用来练习sg函数打表的一题。
下面是sg函数值打表代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define LL long l...
分类:
其他好文 时间:
2014-09-16 22:10:01
阅读次数:
244
大白书上第一题,贪心。
排序后扫一遍即可。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 0x7fffffff
#define eps 1e-8
#define LL long long
#define...
分类:
其他好文 时间:
2014-09-16 16:02:38
阅读次数:
169