博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年3月14日

摘要: 试除法 ONE: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->IsPrime(a){ for(i=2;i*ibool isPrime(int k) { for (int i = 2 ; i sqrt(n)时筛中剩下的数就已... 阅读全文

posted @ 2009-03-14 16:18 Y.Cloud 阅读(192) 评论(0) 推荐(0) 编辑

摘要: TOJ 1516. Climbing Worm 很简单 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; int main() { double n,... 阅读全文

posted @ 2009-03-14 15:53 Y.Cloud 阅读(185) 评论(0) 推荐(0) 编辑

2009年3月13日

摘要: TOJ 1823. Cantoring Along 简单数组,递归 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include using namespace std; char d[600000]; void rplace(i... 阅读全文

posted @ 2009-03-13 22:32 Y.Cloud 阅读(314) 评论(0) 推荐(0) 编辑