摘要: 描述Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= 阅读全文
posted @ 2018-05-30 21:46 MalcolmMeng 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 描述 将正整数n 表示成一系列正整数之和,n=n1+n2+…+nk, 其中n1>=n2>=…>=nk>=1 ,k>=1 。正整数n 的这种表示称为正整数n 的划分。正整数n 的不同的划分个数称为正整数n 的划分数。 输入标准的输入包含若干组测试数据。每组测试数据是一个整数N(0 < N <= 50) 阅读全文
posted @ 2018-05-30 19:45 MalcolmMeng 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 描述The objective of the program you are going to produce is to evaluate boolean expressions as the one shown next: where V is for True, and F is for Fa 阅读全文
posted @ 2018-05-30 18:55 MalcolmMeng 阅读(306) 评论(0) 推荐(0) 编辑