2016年2月22日

[CODEVS 1031]质数环

摘要: 【问题描述】 一个大小为N(N<=17)的质数环是由1到N共N个自然数组成的一个数环,数环上每两个相邻的数字之和为质数。如下图是一个大小为6的质数环。为了方便描述,规定数环上的第一个数字总是1。如下图可用1 4 3 2 5 6来描述。若两个质数环,数字排列顺序相同则视为本质相同。现在要求你求出所有本 阅读全文

posted @ 2016-02-22 15:53 Double680 阅读(301) 评论(0) 推荐(0) 编辑

[POJ 1274]The Perfect Stall

摘要: 【问题描述】 Farmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, 阅读全文

posted @ 2016-02-22 15:29 Double680 阅读(159) 评论(0) 推荐(0) 编辑

[POJ 1273]Drainage Ditches

摘要: 【问题描述】 Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water f 阅读全文

posted @ 2016-02-22 15:05 Double680 阅读(241) 评论(0) 推荐(0) 编辑

导航