码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
【leetcode刷题笔记】Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:其他好文   时间:2014-07-26 00:05:16    阅读次数:301
母板页的导航背景色更改
假设我的母版页是Page.Master首先在母版页定义一个公共变量private string _currentMenu;public string CurrentMenu{set { this._currentMenu = value; }get { return this._currentMen...
分类:其他好文   时间:2014-07-25 19:11:41    阅读次数:231
利用运算符优先级实现if else
利用运算符优先级实现if(a){alert('true')}else{alert('false')}a && (alert('true'),1) || alert('false')或者用三目运算符a ? alert('true') : alert('false');一、使用常见的三元操作符if (f...
分类:其他好文   时间:2014-07-25 16:43:31    阅读次数:267
爪哇国新游记之十三----XML文件读写
/** * XML读写示例 * @author hx * */public class XmlReaderWriter{ /** * 读取一个XML文件,返回一个雇员链表 * @param fileName * @return */ public List...
分类:其他好文   时间:2014-07-25 14:08:51    阅读次数:261
hdu 2504 又见Gcd
有时候觉得自己也挺天才滴~O(∩_∩)O~,小小鼓励下。(虽然是道大水题吧....囧) 1 #include 2 int Gcd(int m,int n) 3 { 4 return m==0?n:Gcd(n%m,m); 5 } 6 int main() 7 { 8 int n; 9 ...
分类:其他好文   时间:2014-07-25 13:52:41    阅读次数:153
hdu 2602 Bone Collector
开始变量竟然输反了#include #include int dp[1002]; struct none { int vo; int value; }a[1002]; int max(int a,int b) {return a>b?a:b;} int main() { int N,V,T,i,j; scanf("%d",&T); while(T--) { sc...
分类:其他好文   时间:2014-07-25 11:28:01    阅读次数:203
uva 548(二叉树)
题解:给出了二叉树的中序和后序,重建二叉树,输出路径和最短的叶子的值。 两个模板: 给出前序和中序建树: Node* build (int n, int* preo, int* ino) { Node* node = new Node; int i = 0; if (n <= 0) return NULL; while (ino[i] != p...
分类:其他好文   时间:2014-07-25 11:26:21    阅读次数:175
unity3D中协程和线程混合
这是我google unity3D一个问题偶然发现的在stackflow上很有趣的帖子: 大意是 要在unity3D上从服务器下载一个zip,并解压到持久化地址.并将其加载到内存中.下面展示了这种用法: IEnumerator LongCoroutine() { yield return StartCoroutine(DownloadZip()); ExtractZip()...
分类:编程语言   时间:2014-07-25 11:24:41    阅读次数:324
hdu1018--斯特灵公式
斯特灵公式 Wiki http://zh.wikipedia.org/wiki/斯特林公式 /** \brief hdu 1018 * * \param date 2014/7/24 * \param state AC * \return * */ #include #include #include using namespace std; const doub...
分类:其他好文   时间:2014-07-25 11:22:51    阅读次数:192
hdu1066
先把最后所有的0去掉,方法就是在乘的时候统计因子2的个数,然后每遇到一个5,就去掉一个,那么乘出来就没有最后的0了~然后在乘的时候只保留最后一位就可以了,最后把统计了的2的个数乘回去(在统计的时候把2给提出来,这样就可以避免模的除法了!) /** \brief hdu 1066 * * \param date 2014/7/25 * \param state AC * \return ...
分类:其他好文   时间:2014-07-25 11:22:01    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!