CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 数据结构常用算法

文件名称:corsair

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    1.98mb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

一伙海盗抢劫一艘商船后,共截获重量不等的N 个金币。海盗试图按重量平分金币,但由于金币



不可分割,所以他们想确定最多可以将这批金币平均分给多少个海盗。请编写程序确定分配方案。



【输入】



输入包含两行:



第一行为一个正整数N,表示金币总数。



第二行包含N 个正整数,表示N 个金币的重量,以空格分隔。



【输出】



只有一行:包含一个正整数,表示输入给定的N 个金币最多可以平均分给多少个海盗。



【限制】

1 <= N <= 60

金币重量的范围为1 到50 -Group of pirates after the robbery of a merchant ship, intercepted a total of N coins of varying weight. The pirates tried to split the gold by weight, but because of the gold indivisible, so they want to make sure these coins can add up to average to the number of pirates. Please write a program to determine the distribution plan. [Input] input contains two lines: the first acts of a positive integer N, the total number of said coins. The second line contains N positive integer, indicating the weight of N coins, separated by spaces. [Output] only a single line: contains a positive integer, said up to enter a given N coins can be divided equally among the number of pirates. [Sample input] [sample output] 4 2 1 2 3 4 [limit] 1 < = N < = 60 gold weight range of 1-50
(系统自动生成,下载前可以参看下载内容)

下载文件列表

corsair/corsair/corsair.cpp
corsair/corsair/corsair.vcxproj
corsair/corsair/corsair.vcxproj.filters
corsair/corsair/corsair.vcxproj.user
corsair/corsair/ReadMe.txt
corsair/corsair/Release/cl.command.1.tlog
corsair/corsair/Release/CL.read.1.tlog
corsair/corsair/Release/CL.write.1.tlog
corsair/corsair/Release/corsair.exe.intermediate.manifest
corsair/corsair/Release/corsair.lastbuildstate
corsair/corsair/Release/corsair.log
corsair/corsair/Release/corsair.obj
corsair/corsair/Release/corsair.pch
corsair/corsair/Release/link.command.1.tlog
corsair/corsair/Release/link.read.1.tlog
corsair/corsair/Release/link.write.1.tlog
corsair/corsair/Release/mt.command.1.tlog
corsair/corsair/Release/mt.read.1.tlog
corsair/corsair/Release/mt.write.1.tlog
corsair/corsair/Release/stdafx.obj
corsair/corsair/Release/vc100.pdb
corsair/corsair/stdafx.cpp
corsair/corsair/stdafx.h
corsair/corsair/targetver.h
corsair/corsair.sdf
corsair/corsair.sln
corsair/corsair.suo
corsair/ipch/corsair-fa4c5a46/corsair-5513c6f9.ipch
corsair/Release/corsair.exe
corsair/Release/corsair.pdb
corsair/corsair/Release
corsair/ipch/corsair-fa4c5a46
corsair/corsair
corsair/ipch
corsair/Release
corsair

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com