摘要: Problem Describetion Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to 阅读全文
posted @ 2018-08-19 17:23 cj_gjh 阅读(126) 评论(0) 推荐(0)
摘要: Problem Describtion A network of m roads connects N cities (numbered from 1 to N). There may be more than one road connecting one city with another. S 阅读全文
posted @ 2018-08-19 17:18 cj_gjh 阅读(183) 评论(0) 推荐(0)
摘要: Problem Description FJ正在市场上为他的农场采购日用品,他口袋里有K(1 include include include include include include using namespace std; define ll long long define re regi 阅读全文
posted @ 2018-08-19 09:01 cj_gjh 阅读(178) 评论(0) 推荐(0)
摘要: Problem Description 有n个排成一圈的格子,并且已知正整数k和m,你需要往每个格子中填入一个大于等于k的正整数。将相邻的一些格子(或一个单独的格子)中的数加起来,可以产生一个新的数。 假设使用格子中的数可以产生出m,m+1,…,i,但不能产生i+1。求出往格子中填入哪些数,可以使得 阅读全文
posted @ 2018-08-19 08:57 cj_gjh 阅读(152) 评论(0) 推荐(0)
摘要: Problem Description Marsha和Bill收藏了一些大理石。他们想要把这些大理石平均分配给两个人。如果大理石的价值一样,这将很容易做到,因为他们可以简单的对半分。不幸的是,一些大理石比其他的更大或者更漂亮。因此Marsha和Bill给每个大理石都规定了一个价值,它是一个1~6之间 阅读全文
posted @ 2018-08-19 01:45 cj_gjh 阅读(246) 评论(0) 推荐(0)