文件名称:fan
介绍说明--下载内容来自于网络,使用问题请自行百度
问题描述:
球赛门票的售票处规定每位购票者限购一张门票,且每张门票售价50元。购票者中有
m位手持50元钱币,另有n人手持100元。假设售票处开始售票时无零钱。问这m+n人有
几种排队方式可使售票处不致出现找不出钱的局面。
编程任务:
对给定的m,n(0<=m,n<=11),输出各种排队方式(从小到大),计算出排队方式总数。
-Problem Descr iption: The box office ticket sales are limited to the provisions of each ticket purchase a ticket, and the price of 50 yuan per ticket. Ticket-holders have m-bit hand-held 50 coins, and another n armed with 100 yuan. Suppose no small change when the ticket office began selling tickets. M+ n asking a few people queuing up outside ticket office can not find the money to avoid a situation. Programming task: For a given m, n (0 < = m, n < = 11), the output of various line approach (from small to large), calculate the total number of queuing up outside.
球赛门票的售票处规定每位购票者限购一张门票,且每张门票售价50元。购票者中有
m位手持50元钱币,另有n人手持100元。假设售票处开始售票时无零钱。问这m+n人有
几种排队方式可使售票处不致出现找不出钱的局面。
编程任务:
对给定的m,n(0<=m,n<=11),输出各种排队方式(从小到大),计算出排队方式总数。
-Problem Descr iption: The box office ticket sales are limited to the provisions of each ticket purchase a ticket, and the price of 50 yuan per ticket. Ticket-holders have m-bit hand-held 50 coins, and another n armed with 100 yuan. Suppose no small change when the ticket office began selling tickets. M+ n asking a few people queuing up outside ticket office can not find the money to avoid a situation. Programming task: For a given m, n (0 < = m, n < = 11), the output of various line approach (from small to large), calculate the total number of queuing up outside.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
fan.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.