码迷,mamicode.com
首页 >  
搜索关键字:gets    ( 3597个结果
查看library_cache 库缓冲区的命中率
关于library cache的命中率: SQL> desc V$librarycache NAMESPACE VARCHAR2(64) GETS NUMBER GETHITS NUMBER GETHITRATIO NUMBER PINS NUMBER PINHITS NUMBER PINHITRA...
分类:系统相关   时间:2015-07-30 23:05:39    阅读次数:196
POJ 题目2513 Who Gets the Most Candies?(线段树)
Who Gets the Most Candies? Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 11682   Accepted: 3653 Case Time Limit: 2000MS Description N children are si...
分类:其他好文   时间:2015-07-30 21:22:23    阅读次数:103
uva 227--模拟
点击打开链接 这是一道字符串模拟题,可以用来锻炼代码能力吧。 题意很简单给定一个5*5的迷宫,其中有一个空格,每次操作都是让空格进行移动,输出一系列操作之后的迷宫。 int main() { int t=0; while(gets(puzzle[0])) { int x,y; if(puzzle[0][0]=='Z') break; from(i,1,5) gets(puzzle[i]); from(...
分类:其他好文   时间:2015-07-29 06:31:05    阅读次数:103
c读写文件
//如何读写文件字符,使用gets(),puts(),fgets(),fputc()函数//gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符//从严格程度讲,gets(s)函数#include#include int main(){FI...
分类:其他好文   时间:2015-07-28 22:43:58    阅读次数:130
HDU oj 密码
?? #include #include main() { int m; scanf("%d",&m); char a[50]; getchar(); while(m--) { int k,i,x=0,y=0,z=0,h=0; gets(a); k=strlen(a); if(k16) printf("NO\n"); else { for(i=0;i {   ...
分类:其他好文   时间:2015-07-28 10:53:13    阅读次数:120
codeforces 554
A:多给一个字母问能形成多少种字符串= = #include #include #include #include #include #include #include using namespace std; int main() { char a[10001]; gets(a); int len=strlen(a); if(len==1) prin...
分类:其他好文   时间:2015-07-26 19:14:23    阅读次数:190
poj 2886 Who Gets the Most Candies? (树状数组+二分+反素数)
Who Gets the Most Candies? Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 11597   Accepted: 3616 Case Time Limit: 2000MS Description N children are si...
分类:编程语言   时间:2015-07-26 11:11:50    阅读次数:159
[CareerCup] 3.3 Set of Stacks 多个栈
3.3 Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when ...
分类:其他好文   时间:2015-07-26 08:35:16    阅读次数:122
关于atoi,itoa与itob的重写和字符统计
首先关于函数atoi的重写,atoi的功能是字符串能够转换为整数保存,仅仅针对于整数,浮点数以后会有写://实现一个函数intmy_atoi(chars[]),可以将一个字符串转换为对应的整数。 #include<stdio.h> #include<ctype.h> intmain() { charst[50]; gets(st); prin..
分类:其他好文   时间:2015-07-24 00:13:00    阅读次数:115
uva 784 Maze Exploration(简单dfs)
这道题看上去很麻烦,什么迷宫啊,门之类的,其实挺简单的,就是让把与 * 连通的都置为 # 包括 * , 直接dfs就可以了,不过我wa了好多次。。。最后竟然是多读了一个换行,忘了加getchar()了,gets()函数 会把缓冲区里面的换行给读进去的。。。应该把换行去掉,血的教训啊。。。 代码: #include #include #include int dx[4]={-1,0,0,1...
分类:其他好文   时间:2015-07-22 10:53:00    阅读次数:88
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!