码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
PAT1049. Counting Ones
The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F...
分类:其他好文   时间:2015-02-20 11:53:35    阅读次数:249
J - Candy Sharing Game(模拟题)
主要是理解题目意思,然后就按照它说的来模拟就好了。 Description A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blo...
分类:其他好文   时间:2015-02-20 09:46:44    阅读次数:158
数据库表的基本操作
一、创建和管理表1.1常用的数据类型varchar/varchar2--->表示一个字符串number(n)--->表示一个整数,整数的长度为n,可以使用intnumber(m,n)--->表示一个小数,数字小数长度为n,整数长度为m-n,可以使用floatdate--->表示日期类型,按照标准日期格式存放clob--->..
分类:数据库   时间:2015-02-20 00:20:31    阅读次数:218
ORACLE断开产生死锁的用户
--查看最耗磁盘读写率的磁盘语句select*from(selectv.sql_id,v.child_number,v.sql_text,v.elapsed_time,v.cpu_time,v.disk_reads,rank()over(orderbyv.disk_readsdesc)elapsed_rankfromv$sqlv)awhereelapsed_rank<=10;--查看产生表锁的语句,可以的到SID号select*fromv$loc..
分类:数据库   时间:2015-02-20 00:20:03    阅读次数:273
ORACLE断开产生死锁的用户
--查看最耗磁盘读写率的磁盘语句select*from(selectv.sql_id,v.child_number,v.sql_text,v.elapsed_time,v.cpu_time,v.disk_reads,rank()over(orderbyv.disk_readsdesc)elapsed_rankfromv$sqlv)awhereelapsed_rank<=10;--查看产生表锁的语句,可以的到SID号select*fromv$loc..
分类:数据库   时间:2015-02-20 00:17:52    阅读次数:183
HDU5171 GTY's birthday gift(矩阵快速幂)
Problem Description FFZ's birthday is coming. GTY wants to give a gift to ZZF. He asked his gay friends what he should give to ZZF. One of them said, 'Nothing is more interesting than a number multis...
分类:其他好文   时间:2015-02-19 18:43:02    阅读次数:219
poj 2104 K-th Number 主席树
K-th NumberTime Limit: 20000MSMemory Limit: 65536KTotal Submissions: 39737Accepted: 12955Case Time Limit: 2000MSDescriptionYou are working for Macroha...
分类:其他好文   时间:2015-02-19 16:16:34    阅读次数:92
PAT:1019. General Palindromic Number (20) AC
#include#includeint main(){ int n,jin; scanf("%d%d",&n,&jin); if(0==n) //特判0的时候,就是回文数 { printf("Yes\n0"); return 0; } int arr[50]...
分类:其他好文   时间:2015-02-19 12:51:32    阅读次数:148
Linux信号实践(5) --时间与定时器
三种不同精度的睡眠1.sleep#include unsigned int sleep(unsigned int seconds);RETURN VALUE  Zero if the requested time has elapsed, or the number of seconds left to  sleep,  if  the call was interrupted by a sig...
分类:系统相关   时间:2015-02-18 16:28:26    阅读次数:236
CodeForces Round #291 Div.2
A. Chewbaсca and Number感觉这道题巨坑,如果题中加粗标出来的输出得是正数算小坑的话。有个巨坑就是the final number shouldn't start with a zero.答案不能有前导0,我觉得这句话有两种理解:比如将9999变为9,算不算有前导0呢?把9当做一...
分类:其他好文   时间:2015-02-18 15:16:14    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!