Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms Data structs
  • Category : Data structs
  • Tags :
  • Update : 2012-11-26
  • Size : 1.98mb
  • Downloaded :0次
  • Author :Yale*****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
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
Packet file list
(Preview for download)
corsair\corsair\corsair.cpp
.......\.......\corsair.vcxproj
.......\.......\corsair.vcxproj.filters
.......\.......\corsair.vcxproj.user
.......\.......\ReadMe.txt
.......\.......\..lease\CL.read.1.tlog
.......\.......\.......\CL.write.1.tlog
.......\.......\.......\corsair.exe.intermediate.manifest
.......\.......\.......\corsair.lastbuildstate
.......\.......\.......\corsair.log
.......\.......\.......\corsair.obj
.......\.......\.......\corsair.pch
.......\.......\.......\link.read.1.tlog
.......\.......\.......\link.write.1.tlog
.......\.......\.......\mt.read.1.tlog
.......\.......\.......\mt.write.1.tlog
.......\.......\.......\stdafx.obj
.......\.......\.......\vc100.pdb
.......\.......\stdafx.cpp
.......\.......\stdafx.h
.......\.......\targetver.h
.......\corsair.sdf
.......\corsair.sln
.......\corsair.suo
.......\ipch\corsair-fa4c5a46\corsair-5513c6f9.ipch
.......\Release\corsair.exe
.......\.......\corsair.pdb
.......\corsair\Release
.......\ipch\corsair-fa4c5a46
.......\corsair
.......\ipch
.......\Release
corsair
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.