Many fund raising events involve a raffle of sorts. Participants buy as many tickets as they wish with each ticket having a (large) number on it. The organizers of the raffle pick a random ticket from all those sold and calls the number, digit by digit. The owner of the ticket wins the raffle.
Raffle tickets are normally sold in huge quantities on a roll. Most raffles will never use that many tickets; the extras are usually saved for another time. However, since only a small subset of raffle tickets are sold at a particular event, not all the digits of the winning ticket need to be read. Only the last few digits (the least significant ones in math parlance) need to be read; the others will be the same For example, if 50 tickets are sold, then only the last 2 digits matter. If 160 tickets are sold, then only the last 3 digits matter.
Given the number of tickets sold, how many digits need to be read to determine the winning ticket.
求英语大神,不要用机器翻译,这是一道题目,机器翻译后结出来的答案不对的?在线等,翻译正确,立刻采纳,谢谢~
好吧,你这是机器翻译啊,亲,机器翻译谁不会呢?