#45784: 派森


chen971023@gmail.com (ZiaynGZiyaNG)

School : 國立臺南第二高級中學
ID : 291750
IP address : [122.121.141.56]
Last Login :
2025-07-03 13:13:41
e621. 1. 免費停車 (Free Parking) -- 2019年10月TOI練習賽新手組 | From: [122.121.184.213] | Post Date : 2025-04-12 00:36

n = int(input())

 

for i in range(n):

m = []

a, b, c = map(int, input().split())

for j in range (1, 501):

if (a < j and j < b and j % c != 0):

m.append(f"{j}")

 

if not (m):

print("No free parking spaces.")

else:

print(*m)

 
ZeroJudge Forum