Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - Office m
Search - Office m - List
DL : 0
问题描述: 球赛门票的售票处规定每位购票者限购一张门票,且每张门票售价50元。购票者中有 m位手持50元钱币,另有n人手持100元。假设售票处开始售票时无零钱。问这m+n人有 几种排队方式可使售票处不致出现找不出钱的局面。 编程任务: 对给定的m,n(0<=m,n<=11),输出各种排队方式(从小到大),计算出排队方式总数。 -Problem Description: 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.
Date : 2025-12-30 Size : 1kb User : atlantis
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.