码迷,mamicode.com
首页 >  
搜索关键字:gets    ( 3597个结果
在线判题 (模拟)http://202.196.1.132/problem.php?id=1164
#include#include#include#include#define N 200010void input(char s[]){ char str[N] = {0}; while(gets(str), strcmp(str, "START"));/****/ while(...
分类:Web程序   时间:2015-06-09 21:32:24    阅读次数:179
[LeetCode] Contains Duplicate III
This problem gets much trickier than Contains Duplicate and Contains Duplicate II.The basic idea is to maintain a window of k numbers. For each new nu...
分类:其他好文   时间:2015-06-09 13:18:23    阅读次数:144
第14周上机实践项目1——小玩文件(3)
(3)用键盘输入文件名,统计输出文件中每个字母、数字字符出现的次数; 代码 #include #include #include #include using namespace std; int main() { fstream infile; char textname[80]; gets(textname); infile.open(textnam...
分类:其他好文   时间:2015-06-08 10:00:49    阅读次数:97
LightOJ1011---Marriage Ceremonies (状压dp)
You work in a company which organizes marriages. Marriages are not that easy to be made, so, the job is quite hard for you.The job gets more difficult when people come here and give their bio-data with...
分类:其他好文   时间:2015-06-06 12:08:28    阅读次数:185
OJ刷题---简单密码破解
题目要求: 输入代码: #include #include #include using namespace std; int main() { char str[100]; int i; gets(str); i=0; while(str[i]!='\0') { if(str[i]>='A'&&str[i]<='Y...
分类:其他好文   时间:2015-06-05 22:39:27    阅读次数:162
gets、scanf和getchar之间的区别
getsgets、scanf和getchar之间的区别1、 get函数读取数据时,接受的数据包括数据和回车符。即:读取数据后输入流没有输入 操作动作。2、 scanf函数读取数据时,接受的数据只有数据,不包括回车符。即:读取数据后输入流 还存在回车符操作动作。3、 getchar函数读取一个字符数据...
分类:其他好文   时间:2015-06-05 19:21:25    阅读次数:110
HDU ACM 1073 Online Judge ->字符串水题
分析:水题。 #include using namespace std; #define N 5050 char a[N],b[N],tmp[N]; void Read(char p[]) { getchar(); gets(tmp); while(gets(tmp)) { if(strcmp(tmp,"END")==0) break; if(strlen(tmp)!=0) ...
分类:其他好文   时间:2015-06-05 12:19:38    阅读次数:132
OJ刷题---ASCII码排序
题目要求: 输入代码: #include #include using namespace std; int main() { char str[3],temp; int i,j; while(gets(str)) { for(i=0; i<3; i++) for(j=0; j<3; j++) ...
分类:编程语言   时间:2015-06-03 23:33:52    阅读次数:254
C语言-对输入的n个字符串进行排序
#include #include #include #define N 256 //宏定义 int main() { char strArray[N][256]; char *str[N]; char *temp; int i,n; printf("请输入字符串:\n"); for(i=0;i<N;i++) { gets(strArray[i]); if (st...
分类:编程语言   时间:2015-06-01 11:36:04    阅读次数:312
codeforces 525B Pasha and String
#include #include #include #include #include #include #include #include using namespace std; char a[200010]; int num[200010]; int main(){ gets(a); int n; scanf("%d",&n); int len = strlen...
分类:其他好文   时间:2015-05-29 20:24:15    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!