虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 其他 > Input The first line of the input contains a single integer T (1 <= T <= 20), the number of t

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

  • 资源大小:2 K
  • 上传时间: 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

相 关 资 源

您 可 能 感 兴 趣 的