上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 61 下一页
摘要: 先来个例子: 需要注意的地方: 1.若函数具有多个形参,则默认形参值必须自右向左连续地定义,并且在一个默认形参值的右边不能有未指定默认值的参数。这是由于c++语言在函数调用时参数是自右向左入栈这一约定决定的。 eg:int f(int a, float b=5.0, char c='c'); 2.在 阅读全文
posted @ 2015-08-22 15:15 jiu~ 阅读(12448) 评论(0) 推荐(4) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1A + B ProblemTime Limit:2 Seconds Memory Limit:65536 KBCalculate a + bInputThe input will ... 阅读全文
posted @ 2015-07-31 17:11 jiu~ 阅读(431) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=37GridlandTime Limit:2 Seconds Memory Limit:65536 KBBackgroundFor years, computer scientist... 阅读全文
posted @ 2015-07-31 16:37 jiu~ 阅读(541) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/499/AA. Watching a movieYou have decided to watch the best moments of some movie. There are two buttons on yo... 阅读全文
posted @ 2015-07-22 22:07 jiu~ 阅读(244) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/478/BB. Random Teamsnparticipants of the competition were split intomteams in some manner so that each team h... 阅读全文
posted @ 2015-07-22 18:40 jiu~ 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 终有一天我手中的编译器将成为我灵魂的一部分,这世界在我的眼中将被代码重构,我将看到山川无尽银河无垠都汇成二进制的数字河流,过往英雄都在我脑海眼前一一浮现,而我听到无数码农跪倒在我的程序面前呼喊。他们叫我代码之神。到那个时候,我想我一定可以找回你。一丶这是一个属于代码的修真世界。这世界里的每一个人,每... 阅读全文
posted @ 2015-07-22 16:20 jiu~ 阅读(2946) 评论(8) 推荐(14) 编辑
摘要: 1.1 Python中的线程使用1.1.1 函数式1.2 创建threading.Thread的子类来包装一个线程对象1.2.1 threading.Thread类的使用1.3 线程优先级队列(Queue)1.4 thread对象中的一些方法1.4.1 join方法1.4.2 setDaemon() 阅读全文
posted @ 2015-07-21 07:30 jiu~ 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 对于字符串,我想,第一想法是以0结尾的ANSI单字节字符数组。然而有些语言文字系统的字符集容量巨大,一个字节最多能表示256个符号,显得不够用。于是产生了DBCS,但其单双字节混用,犹如恶梦,我们鄙弃之,转而研究Unicode编码。 在windows Vista中,每个Unicode字符都使用... 阅读全文
posted @ 2015-07-19 12:29 jiu~ 阅读(312) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/499/BB. LectureYou have a new professor of graph theory and he speaks very quickly. You come up with the foll... 阅读全文
posted @ 2015-07-11 13:45 jiu~ 阅读(376) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2516 取石子游戏 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission( 阅读全文
posted @ 2015-07-11 10:39 jiu~ 阅读(2242) 评论(0) 推荐(0) 编辑
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 61 下一页