2013年7月20日

POJ 1915 Knight Moves

摘要: Knight MovesTime Limit:1000MSMemory Limit:30000KTotal Submissions:19506Accepted:8986DescriptionBackgroundMr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him?The ProblemYour task is to write a program to c 阅读全文

posted @ 2013-07-20 17:00 lzm风雨无阻 阅读(797) 评论(0) 推荐(0)

POJ 1745 Divisibility

摘要: DivisibilityTime Limit:1000MSMemory Limit:10000KTotal Submissions:9476Accepted:3300DescriptionConsider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithmetical expressions that evaluate to different values. Let us, for e 阅读全文

posted @ 2013-07-20 14:47 lzm风雨无阻 阅读(354) 评论(0) 推荐(0)

POJ 1731 Orders

摘要: OrdersTime Limit:1000MSMemory Limit:10000KTotal Submissions:8656Accepted:5348DescriptionThe stores manager has sorted all kinds of goods in an alphabetical order of their labels. All the kinds having labels starting with the same letter are stored in the same warehouse (i.e. in the same building) la 阅读全文

posted @ 2013-07-20 11:41 lzm风雨无阻 阅读(392) 评论(0) 推荐(0)

POJ 1664 放苹果

摘要: 放苹果Time Limit:1000MSMemory Limit:10000KTotal Submissions:23639Accepted:14999Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 #include using namespace std;int n;int ans;int result;void DFS(int index, int from, int sum){ if (index == n) { i... 阅读全文

posted @ 2013-07-20 10:53 lzm风雨无阻 阅读(196) 评论(0) 推荐(0)

导航