转载自:http://blog.csdn.net/shiqi_614/article/details/8228102之前做了些线段树相关的题目,开学一段时间后,想着把它整理下,完成了大牛NotOnlySuccess的博文“完全版线段树”里的大部分题目,其博文地址Here,然后也加入了自己做过的一些题...
分类:
其他好文 时间:
2014-08-31 16:59:31
阅读次数:
232
题目来源:URAL 1141. RSA Attack
题意:给你e n c 并且有m^e = c(mod n) 求 m
思路:首先学习RSA算法
here
过程大致是
1.发送的信息是m
2.随机选择两个质数 p和q, n = q*p, n的欧拉函数值φ(n)= (p-1)*(q-1)这个需要证明
3.选择一个与φ(n)互质的并且小于φ(n)的数e, 计算c = m^e(mod...
分类:
其他好文 时间:
2014-08-31 15:52:31
阅读次数:
262
250:网格有两种颜色,网格中一列最长的连续的颜色相同的最大值。解题思路:暴力。解题代码:// BEGIN CUT HERE/**/// END CUT HERE#line 7 "TaroGrid.cpp"#include #include #include #include #include #i...
分类:
其他好文 时间:
2014-08-31 08:08:30
阅读次数:
292
DECLARE
-- Local variables here
i INTEGER;
l_return_status VARCHAR2(10);
p_retcode VARCHAR2(2000);
p_errbuf VARCHAR2(2000);
v_x_return_status VARCHAR2(25...
分类:
其他好文 时间:
2014-08-30 23:08:00
阅读次数:
220
Google determines Quality Score slightly differently for each of the different advertising networks that it runs. Here we’ll learn how Quality Score.....
分类:
其他好文 时间:
2014-08-29 20:00:08
阅读次数:
314
Modules Here is a list of all modules: [detail level 12] The eXtented eXosip stack LibeXosip2 Version 4.0.0 How-To initialize libeXosip2. How-To initi...
分类:
其他好文 时间:
2014-08-29 17:57:48
阅读次数:
276
void CGdiplusTestView::OnDraw(CDC* pDC){CGdiplusTestDoc* pDoc = GetDocument();ASSERT_VALID(pDoc);// TODO: add draw code for native data here// device ...
分类:
其他好文 时间:
2014-08-29 15:56:28
阅读次数:
271
我们知道,在对话框中,屏蔽ESC键自己主动退出能够选择重载OnCancel为哑函数的方法: void CXXXXDlg::OnCancel() { // TODO: Add your specialized code here and/or call the base class //CD...
分类:
其他好文 时间:
2014-08-27 23:11:28
阅读次数:
295
题目:Given N integers A={A[0],A[1],...,A[N-1]}. Here we have some operations:(元素和操作元素 2 #include 3 #include 4 #include 5 #include 6 #define mem...
分类:
其他好文 时间:
2014-08-27 21:53:28
阅读次数:
355
网上看到的字符旋转效果,加以改动跟随鼠标旋转并移动,滚轮控制旋转圆到横向直径和纵向直径: 1 2 3 4 5 6 Insert title here 7 8 9 12 你 13 14 17 是 18 19 22 我 23 24 27 的 28 29 ...
分类:
移动开发 时间:
2014-08-27 14:23:38
阅读次数:
314