摘要: BinaryValue Sample Meaning x 00101100 原始x的值 the original x value~x 1... 阅读全文
posted @ 2015-11-27 22:10 徐王 阅读(213) 评论(0) 推荐(0)
摘要: Number TrianglesConsider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route tha... 阅读全文
posted @ 2015-11-27 16:56 徐王 阅读(232) 评论(0) 推荐(0)
摘要: Mother's MilkFarmer John has three milking buckets of capacity A, B, and C liters. Each of the numbers A, B, and C is an integer from 1 through 20, in... 阅读全文
posted @ 2015-11-27 16:26 徐王 阅读(313) 评论(0) 推荐(0)
摘要: Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-... 阅读全文
posted @ 2015-11-27 15:40 徐王 阅读(329) 评论(0) 推荐(0)
摘要: Ski Course DesignFarmer John has N hills on his farm (1 7 #include 8 using namespace std; 9 int a[1002]; 10 int main() 11 { 12 freopen("skides... 阅读全文
posted @ 2015-11-27 12:43 徐王 阅读(374) 评论(0) 推荐(0)
摘要: WormholesFarmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 B . Bessie will tra... 阅读全文
posted @ 2015-11-27 10:02 徐王 阅读(266) 评论(0) 推荐(0)