您现在的位置是:源码地带 > 资源下载

Input The first line of the input contains a single integer T (1 <= T <= 20), the number of t

  • 上传时间: 2015-10-27
  • 上传用户:foreigngirl
  • 资源积分:2 下载积分
  • 标      签: the contains integer number

资 源 简 介

Input The first line of the input contains a single integer T (1 <= T <= 20), the number of test cases. Then T cases follow. The first line of each case contains N, and the second line contains N integers giving the time for each people to cross the river. Each case is preceded by a blank line. There won t be more than 1000 people and nobody takes more than 100 seconds to cross. Output For each test case, print a line containing the total number of seconds required for all the N people to cross the river. Sample Input 1 4 1 2 5 10 Sample Output 17

相 关 资 源