23 lines
457 B
Python
23 lines
457 B
Python
def main():
|
|
persons = [True] * 30
|
|
counter = 0
|
|
index = 0
|
|
number = 0
|
|
while counter < 15:
|
|
if persons[index]:
|
|
number += 1
|
|
if number == 9:
|
|
persons[index] = False
|
|
number = 0
|
|
counter += 1
|
|
index += 1
|
|
index %= len(persons)
|
|
for person in persons:
|
|
print('基' if person else '非', end='')
|
|
print()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|