码迷,mamicode.com
首页 >  
搜索关键字:strlen    ( 2530个结果
牛客网NowCoder Wannafly挑战赛9 A.找一找(数据处理) C.列一列(sscanf)
好几天没好好学习了(咸鱼晒干了) 把稍微没那么咸鱼的几天前的一场牛客网的比赛稍微看了一下,菜的要死,这一场大数的比较多,都死了。 A.找一找 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 链接:ht ...
分类:其他好文   时间:2018-02-06 20:33:28    阅读次数:149
222
int main(){while(scanf("%d",&n) && n){int rt=newp=1;for(int i=1;i<=n;i++){scanf("%s",s+1);int cur=rt,m=strlen(s+1);for(int j=1;j<=m;j++){if(!son[cur][ ...
分类:其他好文   时间:2018-02-05 20:02:54    阅读次数:149
php 简介
什么是PHP? PHP是 PHP Hypertext Preprocessor 的首字母缩略词 PHP 是一种被广泛使用的开源脚本语言 PHP脚本在服务器上执行 PHP没有成本,可供免费下载和使用 PHP 能够做什么 PHP 能够生成动态页面内容 PHP 能够创建 打开 读取 写入 删除以及关闭服务 ...
分类:Web程序   时间:2018-02-05 18:42:40    阅读次数:189
C风格字符串
一、C风格字符串 C风格字符串将字符串放在字符数组中,并以空字符'\0'结束,一般利用指针来操作这些字符串。尽管C++支持C风格字符串,但在C++程序中最好不要使用它们。一些用于操作C风格字符串的标准库函数定义在cstring头文件中,是C语言头文件string.h的C++版本: strlen(p) ...
分类:其他好文   时间:2018-02-02 14:17:18    阅读次数:116
linux动态链接
1,编译,使用-shared和-fpic生成动态链接库库源码:test.c#include<stdio.h>#include<string.h>#include<stdlib.h>staticvoidprintline(intlen){inti;for(i=0;i<len;i++){printf("=");}printf("\n");}voidprint(
分类:系统相关   时间:2018-02-01 14:41:33    阅读次数:183
PHP之mb_substr_count
mb_substr_count (PHP 4 = 4.3.0, PHP 5, PHP 7) mb_substr_count — Count the number of substring occurrences mb_substr_count — 统计字符串出现的次数 Description Par ...
分类:Web程序   时间:2018-02-01 00:21:20    阅读次数:186
WHCTF-babyre
WHCTF babyre 首先执行file命令得到如下信息 尝试用IDA64打开,定位到关键函数main发现无法F5,尝试了修复无果,于是用gdb动态调试一发。 在scanf处下断点 输入12346789之后next 可以看到调用了strlen函数,然后将长度和0xe比较,于是知道flag长度为0x ...
分类:其他好文   时间:2018-01-31 22:26:22    阅读次数:779
华为OJ-进制转换
1 #include 2 using namespace std; 3 int main() 4 { 5 char a[10]; 6 gets(a); 7 int len=strlen(a); 8 int sum=0,quan=16; 9 for(int i=len-1;i>1;i--) 10 { ... ...
分类:其他好文   时间:2018-01-30 12:29:27    阅读次数:170
动态规划_百炼4122 切割回文
1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #... ...
分类:其他好文   时间:2018-01-27 19:12:16    阅读次数:213
Permute Digits
You are given two positive integer numbers a and b. Permute (change order) of the digits of a to construct maximal number not exceeding b. No number i ...
分类:其他好文   时间:2018-01-27 00:30:48    阅读次数:183
2530条   上一页 1 ... 78 79 80 81 82 ... 253 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!