码迷,mamicode.com
首页 >  
搜索关键字:es6 let const    ( 43838个结果
poj1679
1 //Accepted 200 KB 16 ms 2 //kruskal 判断最小生成树是否唯一,找到一条边后判断该边是否可以被取代 3 #include 4 #include 5 #include 6 using namespace std; 7 const i...
分类:其他好文   时间:2014-05-09 09:45:12    阅读次数:361
bzoj 1010,1011
1011:#include #include #include #include #include using namespace std;const int maxN = 100001;const double eps = 1e-7;int n;double m[maxN],sum[maxN];d...
分类:其他好文   时间:2014-05-09 08:36:06    阅读次数:303
c++ static
这个是c++很基础的东西,等用到时又有点晕,翻开primer/*1.static不能声明成const和虚函数2.const static可以初始化,但还是需要在类外定义3.类的static必须定义,并且在类外定义,把内存分配在静态存储区,如果只声明不定义出现无法解析的外部命令我猜是他是在编译时期分配...
分类:编程语言   时间:2014-05-09 05:59:22    阅读次数:305
08 操作符相关
= 在判断的中括号内, 左右两边有空格, 在赋值语句时, 左右两边没有空格+, –, *, /, ** 最后的是幂运算, 例如 let “z=5**3” echo $z # 125% 取模预算例如:n=1n=$[ $n + 1 ]echo $n # 显示 2数制表示法8进制let “oct = 03...
分类:其他好文   时间:2014-05-09 03:34:21    阅读次数:259
HDU 3081 Marriage Match II 二分+最大流
题目来源:HDU 3081 Marriage Match II 题意: 思路:   错误代码 纠结不知道哪错了 先放一放 #include #include #include #include #include using namespace std; const int maxn = 1010; const int INF = 999999999; struct Edg...
分类:其他好文   时间:2014-05-09 02:38:25    阅读次数:264
uva575
/* * uva575 * Date:2014/5/7 * State: AC */ #include #include #include #include #include using namespace std; const int MAXN=34; char Arr[MAXN]; int main() { //cout << "Hello world!" << end...
分类:其他好文   时间:2014-05-09 02:25:56    阅读次数:269
HDU - 3415 Max Sum of Max-K-sub-sequence
题意:求长度不超过K的最大的连续序列的和 思路:采用单调队列,我们要求的是Max{sum[i]-sum[j]}(i-j#include #include #include #include using namespace std; const int MAXN = 1000005; const int INF = 0x3f3f3f3f; int n,k; int arr[MAXN],s...
分类:其他好文   时间:2014-05-09 01:57:07    阅读次数:264
有空就写个C++程序
最近工作变得轻松了很多,有了一些空闲的时间,准备把大学时候的C++抓起来,并且研究研究算法: 第一个C++程序:计算圆的面积,也是看其他的博客写出来的C++程序。...
分类:编程语言   时间:2014-05-09 00:38:19    阅读次数:376
我和你
#include#include#include#includeusing namespace std;const int M=1000;int main(){ string china; int a[M]={-1},b[M]={-1},i,indexa,indexb,len,m; ...
分类:其他好文   时间:2014-05-08 23:27:02    阅读次数:540
[ios5 cocos2d游戏开发实战] 笔记3-FileUtils, notificationCenter
FileUtils//文件管理工具FileUtils::getInstance()std::string getStringFromFile(const std::string& filename);//读取文件中的字符串Data getDataFromFile(const std::string&...
分类:移动开发   时间:2014-05-08 23:00:07    阅读次数:419
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!