码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
hdu 1232
并查集 入门题 1 #include 2 #include 3 int par[1000]; 4 int Find(int x) 5 { 6 while(par[x] > 0) 7 x = par[x]; 8 return x; 9 }10 void Merge(in...
分类:其他好文   时间:2014-07-23 11:58:18    阅读次数:169
poi过滤操作后产生新的sheet
public Sheet filterSheet(Sheet sheetToFilter){ if(sheetToFilter == null){ System.out.println("sheetToFilter is null!"); return null; } int last...
分类:其他好文   时间:2014-07-23 11:32:16    阅读次数:223
Flex/AS3 base64指定字符编码
public static function base64Encode(str:String, charset:String = "GBK"):String{ if(StringUtils.getInstance().isEmpty(str)){ return ""; } var base64:Base64Encoder = new Base64Encoder(); ...
分类:其他好文   时间:2014-07-23 00:06:07    阅读次数:392
hdu 2896 病毒侵袭 AC自动机
http://acm.hdu.edu.cn/showproblem.php?pid=2896 对于hdu oj...发现如果数组越界,还有数组下标为负数 ,可能返回的Judge结果都是WA而不是RE。。。这道题WA了几次,因为 inline int idx(char c) { //return c-'a'; //这里一定小心,如果没有给定字符范围的话,直接re...
分类:其他好文   时间:2014-07-22 23:55:57    阅读次数:236
Reverse Words in a String
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What consti...
分类:其他好文   时间:2014-07-22 23:41:47    阅读次数:380
python isinstance 判断各种类型的小细节
1. 基本语法isinstance(object,classinfo)Return true if theobjectargument is an instance of theclassinfoargument, or of a (direct, indirect orvirtual) subcl...
分类:编程语言   时间:2014-07-22 23:29:17    阅读次数:293
leetcode reverse integer
public class Solution { public int reverse(int x) { int ret=0; while(x!=0) { int t=x%10; ret=ret*10+t; ...
分类:其他好文   时间:2014-07-22 23:25:57    阅读次数:213
MD5
using (var md5 = MD5.Create()){ using (var stream = File.OpenRead(filename)) { return md5.ComputeHash(stream); }}orpublic static strin...
分类:其他好文   时间:2014-07-22 22:49:32    阅读次数:206
js随机数
//得到随机数function fRandomBy(under, over){ switch(arguments.length){ case 1: return parseInt(Math.random()*under+1); case 2: return parseInt(Math.random(...
分类:Web程序   时间:2014-07-22 22:46:12    阅读次数:211
【leetcode刷题笔记】Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:其他好文   时间:2014-07-22 22:32:33    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!