码迷,mamicode.com
首页 >  
搜索关键字:cstring    ( 6726个结果
Codeforces Round #688 (Div. 2)B. Suffix Operations(思维题)
地址:http://codeforces.com/contest/1453/problem/B 题意: 给定你一个长度为n的序列,你有两种操作,给这个序列的后缀加一或者减一,序列的后缀定义和字符串的后缀定义相同,还有你开始在所有的操作开始的时候,选择把一个数变成任意的数,这个操作不计入总的操作次数, ...
分类:其他好文   时间:2020-12-21 12:10:07    阅读次数:0
树状数组
树状数组 lowbit : 求最低位的 $1$ 以及后面的 $0$ 所组成的十进制数 #include<iostream> #include<cstdio> #include<cstring> #include<math.h> #include<algorithm> #define ll long ...
分类:编程语言   时间:2020-12-09 12:01:36    阅读次数:14
Lyndon分解
模板题:https://loj.ac/p/129 知识点:是while不是if 待填坑 code: #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int MAXN = 2e6 + ...
分类:其他好文   时间:2020-12-07 12:32:21    阅读次数:7
c++_获取系统安装字体
//功能函数 #include <vector> using namespace std; vector<CString> g_vSysFonts; INT CALLBACK NEnumFontNameProc(LOGFONT* plf, TEXTMETRIC* /*ptm*/, INT /*nFo ...
分类:编程语言   时间:2020-12-05 10:57:35    阅读次数:6
POJ 2406 Power Strings KMP
#include<iostream> #include<cstring> using namespace std; int len; void getNext(char *s, int *nex) { nex[0] = -1; int i = 0, j = -1; while(i < len) { ...
分类:其他好文   时间:2020-12-01 12:21:17    阅读次数:7
L2-1 功夫传人 (25分)
L2-1 功夫传人 (25分) 假算法过题 #include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> #include<string> #include<map> #inclu ...
分类:其他好文   时间:2020-12-01 11:50:35    阅读次数:3
L2-3 深入虎穴 (25分)
L2-3 深入虎穴 (25分) 建树、找根、找最深的叶子节点 #include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> #include<string> #include<ma ...
分类:其他好文   时间:2020-11-27 11:52:19    阅读次数:53
7-12 最长对称子串 (25分)
https://pintia.cn/problem-sets/1218774283169423360/problems/1218774532776648715 #include <cstdio> #include <iostream> #include <algorithm> #include <s ...
分类:其他好文   时间:2020-11-27 11:32:22    阅读次数:6
P1219 [USACO1.5]八皇后 Checker Challenge 深度搜索 标记 回溯
P1219 [USACO1.5]八皇后 Checker Challenge 好像是紫书上面的题目,没有想象的那么难. 标记的思想. n最大才13,可以深搜,但是搜的过程中就得把不可能情况排除掉,不然搜一年(虚指). #include <algorithm> #include <cstdio> #in ...
分类:其他好文   时间:2020-11-27 11:18:03    阅读次数:7
string和cstring头文件的区别
<string.h> 是C语言标准库的头文件之一,包含了一些字符串/内存处理相关的函数(如 strcpy,memcpy 等)。 <cstring> 是C++语言标准库的头文件之一,基本上就是 <string.h> 的C++版本,当编写C++程序时如果需要使用 <string.h>,则应当用 <cst ...
分类:其他好文   时间:2020-11-23 12:45:12    阅读次数:20
6726条   上一页 1 ... 7 8 9 10 11 ... 673 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!