← 返回 waymo 的题目列表Design a Bingo Card
类型:online_judge
Design a program to generate a Bingo card. A Bingo card is a popular game card that is a 5x5 grid, with each cell containing a unique random number. The center cell is typically a free space. The card should adhere to the following rules:
Each column contains numbers from a specified range: typically, column 1 is from 1-15, column 2 is from 16-30, column 3 is from 31-45, column 4 is from 46-60, and column 5 is from 61-75.
The middle cell in the grid is a free space and does not need a number.
Output should be a 5x5 two-dimensional array or table format.
Example Input/Output:
Input: None Output:
B I N G O
1 16 46 61
2 17 31 47 62
3 18 48 63
4 19 32 49 64
5 20 50 65
Data Scale: Generate any number of Bingo cards.