摘要: Problem Description 把一个偶数拆成两个不同素数的和,有几种拆法呢? Input 输入包含一些正的偶数,其值不会超过10000,个数不会超过500,若遇0,则结束。 Output 对应每个偶数,输出其拆成不同素数的个数,每个结果占一行。 Sample Input 30 26 0 3 阅读全文
posted @ 2016-05-19 23:19 Not-Bad 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 常用方法 阅读全文
posted @ 2016-05-19 23:03 Not-Bad 阅读(179) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2140 Description The cows in farmer John's herd are numbered and branded with consecutive integers from 1 to N (1 <= N <= 10 阅读全文
posted @ 2016-05-19 22:48 Not-Bad 阅读(211) 评论(0) 推荐(0) 编辑