码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
20140710 sequence
这道题当时拿着一看,想都没想就上了前缀和,但看了数据范围,还是必挂的节奏。其实,应对每个前缀和取模,再桶排序一次。还有 有负数#include #include #include #include #include using namespace std;const int maxn = 50000...
分类:其他好文   时间:2014-07-16 20:52:38    阅读次数:149
20140710总结
今天第一题很水,主要坑在负数上,不多说,上代码。 1 #include 2 #include 3 #include 4 using namespace std; 5 long long N,K; 6 long long a[1000000]; 7 long long flags[1000000].....
分类:其他好文   时间:2014-07-16 20:46:53    阅读次数:104
c++第十章-(多继承与虚继承)
多继承class Person{public: Person(std::string theName); void introduce(); protected: std::string name;};class Teacher : public Person{pub...
分类:编程语言   时间:2014-07-16 20:45:08    阅读次数:177
NOJ--1575---数学题
数论 感觉 就是比 图论好玩多了真心应该当时 好好学数学啊~先上题目~ touch me题意 很简单 转换的过程有点复杂 但不是很难理解 好了 现在就直接上代码吧 今晚可能还要再写几篇 烦~ 1 #include 2 using namespace std; 3 int n; 4 long ...
分类:其他好文   时间:2014-07-16 20:32:35    阅读次数:182
c++ boost库学习一:时间和日期
timer类#include #include "iostream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ boost::timer t; coutusing namespace std;int _tmain(i...
分类:编程语言   时间:2014-07-16 20:25:04    阅读次数:224
poj---1995---整数幂取模
先上题目 ~ touch me以前只做过 矩阵快速幂取模~这题是 整数幂取模 差不多一开始 忘记 拆分成二进制 进行离散了 果断TLE ,...这边用到的 * + % 这3个运算符 混合运算时 还是很容易搞混的 1 #include 2 using namespace std; 3 4 _...
分类:其他好文   时间:2014-07-16 20:20:08    阅读次数:158
Windows C++ 非递归式(stack)深度优先遍历目录
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 typedef void (__stdcall *P_WALK_DIR_CALLBACK)(const std::string &In_strFilePath); 8 ...
分类:编程语言   时间:2014-07-16 19:31:47    阅读次数:256
c++第十四章-(类型强转换)
类型强转换有2种。class Company{public: Company(std::string theName,std::string theProduct); virtual void printInfo(); protected: std::string name;...
分类:编程语言   时间:2014-07-13 12:32:39    阅读次数:192
C++中数组初始化
#includeusing std::cout;using std::endl;int arr1[5];int arr2[5] = {1,3,5};int main(){int arr3[5];int arr4[5] = {2,4,6};int *pi1 = new int[5];int *pi2 ...
分类:编程语言   时间:2014-07-13 11:54:21    阅读次数:249
20140710 sequence
考试的时候想了好久都没想出正解 >_ 2 #include 3 #include 4 using namespace std; 5 #define N 500500 6 typedef long long LL; 7 8 int n,k; 9 int num[N];10 int sum[N];...
分类:其他好文   时间:2014-07-13 08:20:23    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!