Power of Cryptography
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 18258
Accepted: 9208
Description
Current work in cryptography involves (among oth...
分类:
其他好文 时间:
2014-07-10 23:57:35
阅读次数:
335
1、MFC中点出对话框显示另存为的一个路径和文件:
void CPatchDlg::OnBnClickedBtnPath()
{
//一下为选择另存为一个路径
m_strSavepath = "";
BROWSEINFO bi;
ZeroMemory(&bi, sizeof(BROWSEINFO));
bi.hwndOwner = m_hWnd;
bi.ulFlags = BIF_...
分类:
编程语言 时间:
2014-07-10 23:51:47
阅读次数:
323
题目大意:
n波人去k*k的电影院看电影。
要尽量往中间坐,往前坐。
直接枚举,贪心,能坐就坐,坐在离中心最近的地方。
#include
#include
#include
#include
#define maxn 1000005
#define lowbit(x) (x&(-x))
using namespace std;
struct BI...
分类:
其他好文 时间:
2014-07-10 22:52:57
阅读次数:
262
题目描述:
实现函数double Power(double base, int exponent),求base的exponent次方。不得使用库函数,同时不需要考虑大数问题。
分析描述:
对于实现一个函数,首先要做的就是全面考虑它的参数的全部可能。对于此题中的数值函数,应该考虑的参数有整数、0、负数、浮点型、整型、是不是大数问题等。...
分类:
其他好文 时间:
2014-07-10 20:58:04
阅读次数:
192
Description
Starting with x and repeatedly multiplying by x, we can compute x31 with thirty multiplications:
x2 = x × x, x3 = x2 × x, x4 = x3 × x, …, x31 = x30 × x.
The operation of squarin...
分类:
其他好文 时间:
2014-07-10 17:36:07
阅读次数:
202
小算法:求一个数的乘方 - 使用递归 1 /** 2 * 求一个整数的乘方 3 * @param num 要乘方的数字 4 * @param power 多少次方 5 * @return 6 */ 7 public static int po...
分类:
其他好文 时间:
2014-07-10 17:00:14
阅读次数:
247
今天的题还是比较水的。。涨自信?第一题。。显而易见的dp:dp[i][j][k][l][m]:表示i位,j个1,k是否顶上界,l个前导零,是否仍在前导零上。转移方程比较复杂,详见代码。第二题比较复杂,大意就是把[ai,bi] 作为区间,落在[1,N]上,互不重叠,长度互不相等。然后dp[j][k]表...
分类:
其他好文 时间:
2014-07-09 17:54:39
阅读次数:
220
Power Strings
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 31111
Accepted: 12982
Description
Given two strings a and b we define a*b to be their concate...
分类:
其他好文 时间:
2014-07-09 11:11:53
阅读次数:
155
第1步检查PC机主板上的CPU风扇电源接口的位置,应该插在cpu-fan的主板接口上;而不是sys-fan或power-fan上;如果还无法解决就采用第2部,在bios里忽略掉该错误提示开机按delete,进入BIOS,然后进入POWER,然后找到MONITOR既“监测”选项,在里面看到的CPUFANSPEED是N/A修改那个值
分类:
其他好文 时间:
2014-07-09 09:02:03
阅读次数:
212