题意是求长度为N,的且,前i(i为,1,2,3.....N-1)位数字构成的数字都是素数的数字例如2333,其中2,23,233,2333,都是素数/*ID: modengd1PROG: sprimeLANG: C++*/#include #include using namespace std;b...
分类:
其他好文 时间:
2015-08-29 06:10:15
阅读次数:
114
Broken NecklaceYou have a necklace of N red, white, or blue beads (3#include using namespace std;const int maxn=355;int N;char beads[maxn];int calcula...
分类:
其他好文 时间:
2015-08-29 06:07:57
阅读次数:
191
1、错误描述C:\Users\Administrator>d:
D:\>cd MySQL\Program Files\MySQL\MySQL Server 5.6\bin
D:\MySQL\Program Files\MySQL\MySQL Server 5.6\bin>mysqldump --all-databases -uro
or -p > all.sql
Enter password:...
分类:
数据库 时间:
2015-08-29 00:56:36
阅读次数:
237
#include?"stdafx.h"
#include<iostream>
using?namespace?std;
void?count(char?*c)
{
?if(c==NULL)
??return;
?int?zimu=0;
?int?shuzi=0;
?int?kongge=0;
?int?qita=0;
?while(*c)
?{
??i...
分类:
其他好文 时间:
2015-08-28 23:30:41
阅读次数:
386
SDUT 3033 (坑)
#include
#include
#include
#include
#define LL long long
using namespace std;
struct node
{
LL s,p,w;
}q[10];
int main()
{
LL n,v,i,j,k;
while(~scanf("%ll...
分类:
其他好文 时间:
2015-08-28 23:27:58
阅读次数:
389
最近这三天,都在解决如下的问题:我MyEclipse中的JavaEE工程,运行之后就提示Access denied for user 'root'@'localhost' (using password: YES),当我用一个Java文件连接MySQL数据库时,没有任何问题。于是我在网上找了一些解决方案:
(1)让root给当前用户授予增删改查的权限:grant select,insert,up...
分类:
数据库 时间:
2015-08-28 23:26:43
阅读次数:
1227
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:
其他好文 时间:
2015-08-28 23:05:39
阅读次数:
172
#include
using namespace std;struct haffNode
{
int data;
haffNode *left;
haffNode *right;
haffNode *parent;
haffNode(int d = int()) :data(d), left(NULL), right(NULL), par...
分类:
其他好文 时间:
2015-08-28 21:38:09
阅读次数:
147
#include
#pragma warning(disable:4996)
using namespace std;//class String
//{
//public:
// String(char* str = " ")
// :_str(new char[strlen(str) + 1]) //多一个字节存‘\0’
// , _pRefcount...
分类:
其他好文 时间:
2015-08-28 21:31:07
阅读次数:
148
数字三角形,最简单的dp之一。不过这次尝试了下滚动数组。/*ID: modengd1PROG: numtriLANG: C++*/#include #include #include using namespace std;int dp[2][1000],input[1001];int main()...
分类:
其他好文 时间:
2015-08-28 21:23:37
阅读次数:
207