2013年9月12日

hdoj 4282 A very hard mathematic problem

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4282解题思路:二分 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: hdoj 4282 3 //user_id: SCNU20102200088 4 /////////////////////////////////////////////////////////////////////////// 5 6 #include 7 #inclu... 阅读全文

posted @ 2013-09-12 20:39 SCNU20102200088 阅读(177) 评论(0) 推荐(0) 编辑

hdoj 3750 Guess Game

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3750解题思路:二分 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: hdoj 3750 3 //user_id: SCNU20102200088 4 /////////////////////////////////////////////////////////////////////////// 5 6 #include 7 #include 8 #... 阅读全文

posted @ 2013-09-12 19:24 SCNU20102200088 阅读(180) 评论(0) 推荐(0) 编辑

hdoj 2199 Can you solve this equation?

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2199解题思路:二分 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: hdoj 2199 3 //user_id: SCNU20102200088 4 /////////////////////////////////////////////////////////////////////////// 5 6 #include 7 #include 8 #... 阅读全文

posted @ 2013-09-12 18:36 SCNU20102200088 阅读(203) 评论(0) 推荐(0) 编辑

uva 11384 Help is needed for Dexter

摘要: 解题思路:对于 1~n, 保留 1~n/2, 把剩下的数同时减去 n/2+1, 得到 1, 2,···, n/2, 0, 1,···, (n-1)/2. 它等价于1, 2,···, n/2. 因此有如下递推关系:cal(1)=1, cal(n)=cal(n/2)+1 (n>=2). 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: uva 11384 3 //us 阅读全文

posted @ 2013-09-12 17:10 SCNU20102200088 阅读(145) 评论(0) 推荐(0) 编辑

uvalive 3708 Graveyard

摘要: 解题思路:把每个雕塑移动到离他最近的位置 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: uvalive 3708 3 //user_id: SCNU20102200088 4 /////////////////////////////////////////////////////////////////////////// 5 6 #include 7 #include 8 #include 9 #include 10 #include 11 ... 阅读全文

posted @ 2013-09-12 16:45 SCNU20102200088 阅读(186) 评论(0) 推荐(0) 编辑

导航