欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

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

其他 2 K 103 次下载

资源详细信息

文件格式
RAR
文件大小
2 K
资源分类
上传者
发布时间
下载统计
103
所需积分
2 积分

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 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

Input The first line of the input contains a single integer T (1 &lt;= T &lt;= 20), the number of t - 源码文件列表

本资源包含 1 个源码文件 支持在线预览,点击文件名即可查看

温馨提示:点击文件名或"查看源码"按钮可在线浏览源代码,支持语法高亮显示。

立即下载 Input The first line of the i

提示:下载后请用压缩软件解压,推荐使用 WinRAR 或 7-Zip

下载说明与使用指南

下载说明

  • 本资源需消耗 2积分
  • 24小时内重复下载不扣分
  • 支持断点续传功能
  • 资源永久有效可用

使用说明

  • 下载后使用解压软件解压
  • 推荐使用 WinRAR 或 7-Zip
  • 如有密码请查看资源说明
  • 解压后即可正常使用

积分获取方式

  • 上传优质资源获得积分
  • 每日签到免费领取积分
  • 邀请好友注册获得奖励
  • 查看详情 →

相关技术标签

点击标签浏览更多相关其他资源:

相关其他资源推荐