E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
1049
1049
. Counting Ones
我实在编程之美上看的答案,把一个数分位讨论再相加,即把个位十位、、出现的1的个数各自加起来,不同的位的1的个数互不影响。难点就是一般大家不会想到这样分位进行讨论吧。#include usingnamespacestd; intmain() { intn,cnt=0; cin>>n; for(intt,base=1;n/base;base*=10) { cnt+=base*(n/(10*base))
u013827143
·
2014-07-19 11:00
Problem
1049
- 斐波那契数
Description 斐波那契数列是如下的一个数列,0,1,1,2,3,5……,其通项公式为F(n)=F(n-1)+F(n-2),(n>=2),其中F(0)=0,F(1)=1,你的任务很简单,判定斐波契数列的第K项是否为偶数,如果是输出YES,否则输出NOInput第一行,T,表示有T个测试样例。接下来T行,每行一个数据K(01+2=3,3能被3整除,所以12能被3整除1293=>1+2
youdianjinjin
·
2014-07-10 21:00
dos下mysql登陆
首先要这样:usetest;//代表你目前要使用的是test这个数据库,然后开始其他的操作=============================================【转】mysqlERROR
1049
歌颂者
·
2014-05-23 22:00
PAT A
1049
. Counting Ones (30)
题目Thetaskissimple:givenanypositiveintegerN,youaresupposedtocountthetotalnumberof1'sinthedecimalformoftheintegersfrom1toN. Forexample,givenNbeing12,therearefive1'sin1,10,11,and12.InputSpecification:Eac
xyzchenzd
·
2014-05-19 12:00
C++
pat
浙大ACM题目分类
数论: 1007 NumericalSummationofaSeries简单题,还是蛮有意思的 1045 HangOver 简单题
1049
IThinkINeedaHouseboat
日拱一卒
·
2014-05-17 23:00
ACM
浙大ACM
Pat(Advanced Level)Practice--
1049
(Counting Ones)
Pat
1049
代码题目描述:Thetaskissimple:givenanypositiveintegerN,youaresupposedtocountthetotalnumberof1'sinthedecimalformoftheintegersfrom1toN.Forexample
u012736084
·
2014-04-07 21:00
C++
pat
基础题
advance
浮点数和定点数
>#小数点左边的范围,小数点右边的范围;mysql>#M和D的意思:mysql>#M代表总位数,mysql>#D是小数点右边的位数mysql>#创建一个薪资登记表mysql>useclassERROR
1049
duguodong189
·
2014-03-29 10:08
Engine
计算机
database
create
default
矩阵十大经典题目之四- VOJ
1049
-送给圣诞夜的礼品
题目链接:https://vijos.org/p/
1049
题目大意: 顺次给出m个置换,反复使用这m个置换对初始序列进行操作,问k次置换后的序列。
rowanhaoa
·
2014-03-11 19:00
子串查找-jobdu-
1049
题目
1049
:字符串去特定字符时间限制:1秒内存限制:32兆特殊判题:否提交:4840解决:2166题目描述:输入字符串s和字符c,要求去掉s中所有的c字符,并输出结果。
chuchus
·
2014-03-08 21:00
【PAT
1049
】 Counting Ones 数学规律
1049
.CountingOnes(30)时间限制10ms内存限制32000kB代码长度限制16000B判题程序Standard作者CHEN,YueThetaskissimple:givenanypositiveintegerN
tiantangrenjian
·
2014-02-25 13:00
URAL:
1049
Brave Balloonists
给你10个数,问你它们的乘积,这个数有多少个因子。输出因子数的最后一个数字。对每个数分解质因数,得到所有质因数及其指数,这些也是乘积的质因数及其指数。利用某数的因子个数等于它所有质因数指数+1的乘积,然后模10得到答案。#include #include #include #include #include #include #include #include #definelll
kkkwjx
·
2014-02-20 21:00
数学
HDU
1049
HDU
1049
ClimbingWorm一只蠕虫在深n英寸的井中,它每分钟会向上爬u英寸,然后它会休息1分钟并且下滑d英寸,现在要求它要多少分钟能到达进口(它就算刚到井口然后会下滑,也算它到达井口)。
u013480600
·
2014-02-14 12:00
ACM
MYSQL-mysqldump应用
备份数据库:E:\mysqldump>mysqldump-uroot-p--databasesmysql>mysql.sql;Enterpassword:*******mysqldump:Goterror:
1049
woxuewangluo
·
2013-12-17 14:07
it
实现苹果和虫子(c语言)
输出输出也仅一行,剩下的苹果个数样例输入
1049
样例输出7提示注意:是要求完整的苹果数。#incl
changemyself
·
2013-12-10 10:00
C语言程序设计
计算概论A
苹果和虫子
基于visual Studio2013解决C语言竞赛题之
1049
抓牌排序
题目解决代码及点评/* 功能:插入排序。许多玩牌的人是以这样的方式来对他们手中的牌进行排序的: 设手中原有3张牌已排好序,抓1张新牌,若这张新牌的次序在原来的第2张牌之后,第 3张牌之前,那么就把这张新牌放在第3张牌的位置上,原来的第3张改为第4张, 然后再抓新牌。按着这个算法,编写一个排序程序。 注:开始一张牌也没有,从第一张牌开始抓起。 时间:23:342013/10/24 *
yincheng01
·
2013-12-09 21:00
1049
. Counting Ones (30)
1049
.CountingOnes(30)#includeclassCA{public:voidrun();intn,num;};voidCA::run(){scanf("%d",&n);intr,x,
lv_zj
·
2013-11-15 12:03
浙大PAT
mysqldb在python下的使用
没有这个数据库:~/python$mysql_exceptions.OperationalError:(
1049
,"Unknowndatabase'my_db'")这个我要证实一下,不是我自己太坑了,是网站的那个代码有点坑
·
2013-09-02 15:00
mysql
python
TOJ
1049
Jesse's problem
Jesse'sproblem TimeLimit(Common/Java):1000MS/10000MS MemoryLimit:65536KByteTotalSubmit:31 Accepted:15DescriptionAlloneknowsJesseliveinthecity,buthemustcometoXiashatwiceinaweek.Theroadistoolongf
wangwenhao00
·
2013-08-31 20:00
HD
1049
Climbing Worm
Problem Description An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest, i
·
2013-08-30 22:00
bing
mysql错误记录
1.本地启动mysql:命令:mysql -uroot-proot-P8066-v-S /opt/app/DataBase/mysql.sock 报错:ERROR
1049
(42000):Unknowndatabase'root
jeffsui
·
2013-08-07 14:00
PAT
1049
Counting Ones
Thetaskissimple:givenanypositiveintegerN,youaresupposedtocountthetotalnumberof1'sinthedecimalformoftheintegersfrom1toN.Forexample,givenNbeing12,therearefive1'sin1,10,11,and12.InputSpecification:Eachin
cham3
·
2013-08-05 15:00
pat
hdu1264之线段树+扫描线
CountingSquaresTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):
1049
xingyeyongheng
·
2013-07-30 21:00
Mysql数据库备份的问题:mysqldump: Got error:
1049
: Unknown database 'blog;' when selecting the database
今天进行Mysql数据库备份时出现了下面的问题:mysqldump:Goterror:
1049
:Unknowndatabase'blog;'whenselectingthedatabase,大致意思是找不到
song19890528
·
2013-07-29 19:00
HDU 4062 Partition
PartitionTimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):
1049
AcceptedSubmission
·
2013-07-25 19:00
partition
sicily
1049
. Mondriaan
画图找递推关系:#include usingnamespacestd; intanswer[1000010]; intmain(){ intN=0,L=0,ans=0,i=0; answer[0]=1; answer[1]=2; answer[2]=7; answer[3]=2; answer[4]=1; for(i=5;i>N; for(i=0;i>L; ans=answer[L]; cout<
jcjc918
·
2013-07-16 22:00
BZOJ
1049
([HAOI2006]数字序列-数字序列LIS与分块)
1049
:[HAOI2006]数字序列TimeLimit: 10Sec MemoryLimit: 162MBSubmit: 397 Solved: 151[Submit][Status]Description
nike0good
·
2013-07-08 21:00
1049
. Counting Ones (30)-PAT
1049
.CountingOnes(30)时间限制10ms内存限制32000kB代码长度限制16000B判题程序Standard作者CHEN,YueThetaskissimple:givenanypositiveintegerN
zoushidexing
·
2013-06-30 16:00
HDOJ题目分类
模拟题, 枚举1002 1004 1013 1015 1017 1020 1022 1029 1031 1033 1034 1035 1036 1037 1039 1042 1047 1048
1049
·
2013-06-19 22:00
分类
错误提示:mysqldump: Got error:
1049
: Unknown database 'jpa;' when selecting the database
报错信息:mysqldump:Goterror:
1049
:Unknowndatabase'jpa;'whenselectingthedatabase ,识别不了jpa这个数据库。
zhujiaxing666666
·
2013-06-19 21:00
HDU
1049
Climbing Worm
ProblemDescriptionAninchwormisatthebottomofawellninchesdeep.Ithasenoughenergytoclimbuincheseveryminute,butthenhastorestaminutebeforeclimbingagain.Duringtherest,itslipsdowndinches.Theprocessofclimbinga
dyllove98
·
2013-05-31 22:00
序列行VIJOS
1049
送给圣诞夜的礼品(矩阵快速幂)
id=
1049
描述 当小精灵们把贺卡都书写好了以后。礼品准备部的小精灵们已经把所有的礼品都制作好了。
·
2013-05-20 22:00
OS
VIJOS
1049
送给圣诞夜的礼品(矩阵快速幂)
id=
1049
描述当小精灵们把贺卡都书写好了之后。礼品准备部的小精灵们已经把所有的礼品都制作好了。可是由于精神消耗的缘故,他们所做的礼品的质量越来越小,也就是说越来越不让圣诞老人很满意。
qq7366020
·
2013-05-19 23:00
Matrix
hdu
1049
Climbing Worm
pid=
1049
题目描述:ClimbingWormTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)
hackerwin7
·
2013-04-11 20:00
ERROR
1049
(42000): Unknown database 'root' 处理
本地启动mysql:命令:mysql -uroot-proot-P8066-v-S /opt/app/DataBase/mysql.sock报错:ERROR
1049
(42000):Unknowndatabase'root
疯狂
·
2013-03-29 11:00
英语学习
word.ebigear.com/rememberword-3756539.htmlwaybackintolove回到爱[K歌情人]主题曲http://www.ebigear.com/resclick-
1049
Hknock
·
2013-03-21 23:00
1049
. Counting Ones (30)
经典的一道数1的面试题,详细推论以及证明在其他很多博客上都有,讲的都很好看了下所有的PAT考试,里面涉及到的算法和数据结构还是比较集中的。因为PAT测试面向企业,所以还是比较喜欢出经典面试题,而在面试中要考察综合性的编程能力的话,链表和树相关操作都是常考的。#include intCount(intn) { intans=0; intbase=1; //count"1"ineverydigit,
sunbaigui
·
2013-03-14 11:00
pat
ZJU
pat
1049
Counting Ones
第4,6个点超时。后来发现居然是编程之美的一道原题,用了书上代码,直接AC。代码: //104920:14-20:35 #include constintNUM=100000000; intfind(intx) { intres=0; while(x){ if(x%10==1) res++; x=x/10; } returnres; } intfind1(intx)
jjike
·
2013-03-07 20:00
题目
1049
: 最大公约数
题目描述输入两个正整数,求其最大公约数。 输入测试数据有多组,每组输入两个正整数。 输出对于每组输入,请输出其最大公约数。 样例输入4914 样例输出7 提示[+]***提示已隐藏,点击上方[+]可显示*** 来源2011年哈尔滨工业大学计算机研究生机试真题 /********************************* *日期:2013-3-4 *作者:SJF0115 *题号:天勤OJ题目
SJF0115
·
2013-03-04 21:00
哈工大
题目
1049
: 最大公约数
题目描述 输入两个正整数,求其最大公约数。 输入 测试数据有多组,每组输入两个正整数。 输出 对于每组输入,请输出其最大公约数。 样例输入 49 14 样例输出 7
piperzero
·
2013-03-04 21:00
bit
1049
Relatives
Relatives时间限制:1秒 内存限制:64MProblemDescriptionGivenn,apositiveinteger,howmanypositiveintegerslessthanorequaltonarerelativelyprimeton?Twointegersaandbarerelativelyprimeiftherearenointegersx>1,y>0,z>0sucht
y11201
·
2013-02-14 23:00
BIT
1049
Relatives
给一个n,当n为0时停止输入赤裸裸地求欧拉函数值。。。。。#include #include #include usingnamespacestd; longlongeuler(longlongn)//求n的欧拉函数 { longlongans=1,i; for(i=2;i*i1)ans*=n-1; returnans; } intmain() { longlongn; while(scanf("
zhangwei1120112119
·
2013-02-03 15:00
MySQL的登陆错误:ERROR
1049
(42000): Unknown database 'yht'
转载来自:【转】mysql ERROR
1049
(42000): Unknown database '**&#当初刚装MySQL的时候,到网上查的命令行登陆MySQL的方法都是mysql-uroot-ppassword
yht520100
·
2013-01-02 17:00
[sicily online]
1049
. Mondriaan
ConstraintsTimeLimit:1secs,MemoryLimit:32MBDescriptionSquaresandrectanglesfascinatedthefamousDutchpainterPietMondriaan.Oneday,whileworkingonhislatestproject,hewasintriguedbythenumberofdifferentwaysinw
qiuchenl
·
2012-12-13 18:00
vijos
1049
送给圣诞夜的礼品
这题是基础了,无耐C++驾驭能力不高...线性代数也弱//矩阵与置换之间的关系 //不用写= //小心函数的本地指代 //函数用完内存全释放 //把指数想象成二进制数就可以理解了 //单位矩阵别搞错了 //time=0的时候彻底被坑了 #include #include usingnamespacestd; typedefclassmatrix { public: intnum[102][102
cqlf__
·
2012-11-07 21:00
HDOJ
1049
Climbing Worm
#include #include usingnamespacestd; int main() { intn,u,d,sum,t; while(cin>>n>>u>>d&&(n||u||d)){ t=0; sum=0; while(1){ sum+=u; t++; if(sum>=n)break; sum-=d; t++; } cout<<t<<endl; } return0; }
電泡泡
·
2012-11-04 21:00
中国剩余定理解线性同余方程
韩信马上说出人数:
1049
。而在一千多年前的《孙子算经》中,也有这样一道算术题:“今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问物几何?”按照今天的话来说:一个数除以3余2,除以5
he_qiao_2010
·
2012-10-25 14:00
Debian(squeeze)6.0.5安装NVIDIA显卡驱动,卸载显卡驱动
于是需要重新安装显卡驱动2:首先是搜索显卡型号root@debian:~#lspci|grepVGA 01:00.0VGAcompatiblecontroller:nVidiaCorporationDevice
1049
rainysia
·
2012-09-24 11:00
Debian
浏览器
Google
gcc
编译器
HDU
1049
#include usingnamespacestd; intmain() { intn; inta,b; while(cin>>n>>a>>b,n) { intt=0; while(n>0) { if((t&1)==0) n-=a; else n+=b; t++; } cout<<t<<endl; } return0; }
vsooda
·
2012-09-20 17:00
十个基于codeigniter,CI的开源CMS及应用
RankVotesName159IonizeCodeIgniterCMS251EgyptCMS323OpenBlog47TotalShopUKeCommerce518Blogmer-OpenSource...612PliantCMS733Linkster,the...857PyroCMS916FUELCMS
1049
MyClientBase
nightelve
·
2012-09-04 11:00
cms
Blog
svn
·下花生壳·在将数据库的资料从SVN服务器上拉下来时出现这个问题:Unknowndatabase'myblog'(
1049
) - USE`myblog`;,仔细研究了下,原来并不是配置问题,只是那个数据库的资料必须得用一个新的数据库来储存起来
sunhuwh
·
2012-08-04 00:00
上一页
14
15
16
17
18
19
20
21
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他