码迷,mamicode.com
首页 >  
搜索关键字:if判断语句 嵌套语句 return    ( 61825个结果
模板类的全特化、偏特化
我们先来定义一个普通的模板类1 template2 struct Test3 {4 Test(){ cout t1;4 Test t2;5 Test t3;6 return 0;7 }输出的结果1: 模板类 模板类 模板类如果我们这样写,再增加一个模板类 1 ...
分类:其他好文   时间:2014-04-28 08:02:07    阅读次数:749
素数求和
#include using namespace std;int fun(int a){ if(a==1) return 0; for(int i=2;i>M; while(M--) { int i,sum=0; cout>N; ...
分类:其他好文   时间:2014-04-27 22:06:54    阅读次数:578
hdu4104 Discount
给n个数,问最小不能组成的正整数是多少。 数学归纳法。 从sum=0开始,每次考察sum+1>=a[i],则sum+1肯定可以达到,那么sum+a[i]以内的数肯定可以达到。 #include #include #include #include #include #include #include #include #include #define...
分类:其他好文   时间:2014-04-27 20:06:50    阅读次数:554
leetcode day4 -- Binary Tree Postorder(Preorder) Traversal && Edit Distance
?? 1、Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 retu...
分类:其他好文   时间:2014-04-27 18:58:59    阅读次数:481
POJ2007 Scrambled Polygon
极角排序...
分类:其他好文   时间:2014-04-27 18:14:10    阅读次数:547
61825条   上一页 1 ... 6181 6182 6183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!