2013年8月21日

zoj 2913 Bus Pass

摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2913解题思路:BFS搜索 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: zoj 2913 3 //user_id: SCNU20102200088 4 /////////////////////////////////////////////////////////////////////////// 5 ... 阅读全文

posted @ 2013-08-21 19:56 SCNU20102200088 阅读(221) 评论(0) 推荐(0) 编辑

poj 2478 Farey Sequence

摘要: 题目链接:http://poj.org/problem?id=2478题目大意:给定一个整数 n ( 2≤n≤106), 求 phi(2)+phi(3)+···+phi(n).解题思路:简单题,主要是求 1-106的欧拉函数 phi(i), 方法与素数筛法类似。 1 /////////////////////////////////////////////////////////////////////////// 2 //problem_id: poj 2478 3 //user_id: SCNU20102200088 4 /////////////////// 阅读全文

posted @ 2013-08-21 01:02 SCNU20102200088 阅读(156) 评论(0) 推荐(0) 编辑

导航