码迷,mamicode.com
首页 >  
搜索关键字:cstring    ( 6726个结果
POJ - 3264 Balanced Lineup
题目链接 线段树,求区间最大值减去区间最小值的值。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; const int N = ...
分类:其他好文   时间:2020-07-30 01:40:15    阅读次数:67
hdu6761 Mininum Index // lyndon分解 + duval贪心 + 秦九韶算法
link:http://acm.hdu.edu.cn/showproblem.php?pid=6761 建议学习该博客:https://blog.csdn.net/wayne_lee_lwc/article/details/107528945 √ AC代码:(基本搬运...看了半天才懂了一点点... ...
分类:编程语言   时间:2020-07-30 01:31:32    阅读次数:80
POJ 3468
线段树延迟标记的具体应用,是比较简单的区间加和修改 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <queue> using namespace std; const in ...
分类:其他好文   时间:2020-07-30 01:16:29    阅读次数:68
题目 1094: 字符串的输入输出处理 --c语言网
类型:字符串 思路:前n行用getilne(),或者gets() 读取数据。 剩下的用cin,或者scnaf() 读取数据;当读取到空格时表示一个字符串的结束。 getchar():消去回车符。 AC代码: 1 #include<iostream> 2 #include<cstring> 3 #in ...
分类:编程语言   时间:2020-07-29 21:47:49    阅读次数:86
POJ - 3468 A Simple Problem with Integers
题目链接 线段树区间修改,每个数均加上一个值。区间查询和。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<string> #include<cmath> using namespa ...
分类:其他好文   时间:2020-07-29 21:42:43    阅读次数:65
背包解法2
分组背包: #include<iostream> #include<cmath> #include<cstring> #include<algorithm> using namespace std; int n,m; const int N=105; int f[N],v[N],w[N]; int ...
分类:其他好文   时间:2020-07-29 21:15:50    阅读次数:54
dalao高精
#ifndef MY_BIGN_H#define MY_BIGN_H 1#pragma GCC system_header#include<cstring>#include<algorithm>#include<iostream>using std::max;using std::istream;u ...
分类:其他好文   时间:2020-07-28 16:52:02    阅读次数:67
面试题32:从上到下打印二叉树
从上到下打印二叉树,引用辅助队列。 C++版本 #include <iostream> #include <vector> #include <stack> #include <cstring> #include <queue> #include <algorithm> using namespac ...
分类:其他好文   时间:2020-07-28 10:00:15    阅读次数:73
[模板]kd-tree
//It is made by jump~ #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #include <cmath> #include <algorithm> #include <ctim ...
分类:其他好文   时间:2020-07-27 17:46:04    阅读次数:68
String Distance and Transform Process 小白详解
题意:两个字符串str1,str2。让str1去匹配str2。可以对str1增,删,改。 Insert pos,value Delete pos Replace pos,value 输入样例: abcac bcd aaa aabaaaa 输出样例: 3 1 Delete 1 2 Replace 3, ...
分类:其他好文   时间:2020-07-27 15:46:23    阅读次数:63
6726条   上一页 1 ... 13 14 15 16 17 ... 673 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!