摘要:
问题描述: 数轴上有 n 个闭区间 [a_i, b_i]。取尽量少的点,使得每个区间内都至少有一个点(不同区间内含的点可以是同一个) Input 第一行1个整数N(N<=100)第2~N+1行,每行两个整数a,b(a,b<=100) Output 一个整数,代表选点的数目 Examples Inpu 阅读全文
摘要:
Problem 给定n个正数,从中选出K个来使得他们的和为S,请问一共有多少种方法? Input: The first line, an integer T<=100, indicates the number of test cases. For each case, there are two 阅读全文