01 2015 档案

Make the Most (Hackerrank Codeagon)
摘要:题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati... 阅读全文

posted @ 2015-01-25 15:42 Stomach_ache 阅读(292) 评论(0) 推荐(0) 编辑

Java 普通代码块,构造代码块,静态代码块
摘要:具体百度。。。这里只记下,构造构造代码块在构造函数之前执行,每创建一个对象则执行一次。静态代码块属于类,而不是对象,只执行一次。 阅读全文

posted @ 2015-01-22 16:58 Stomach_ache 阅读(142) 评论(0) 推荐(0) 编辑

Schedule(Hackerrank Quora Haqathon)
摘要:题目链接Problem StatementAt Quora, we run all our unit tests across many machines in a test cluster on every code push.One day, we decided to see if we co... 阅读全文

posted @ 2015-01-20 19:39 Stomach_ache 阅读(239) 评论(0) 推荐(0) 编辑

大数加减法实现
摘要:传送门 1 /* 2 * input: an expression seperated by a '-' or '+'; for example: a-b, a+b 3 * ouput: the answer of the input expression 4 */ 5 #includ... 阅读全文

posted @ 2015-01-14 15:16 Stomach_ache 阅读(192) 评论(0) 推荐(0) 编辑

位操作(求[a, b] 中二进制位为1的个数最多的数)
摘要:传送门题意:求区间[a, b]中二进制位为1的个数最多的那个数,如果存在多解,则输出最小的那个。(0 2 3 typedef long long ll; 4 5 int main(void) { 6 int n; 7 scanf("%d", &n); 8 while (... 阅读全文

posted @ 2015-01-14 15:14 Stomach_ache 阅读(241) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示