#19: ok


[email protected] (柚子)

學校 : 不指定學校
編號 : 12
來源 : [172.69.134.78]
最後登入時間 :
2025-06-21 15:57:24
b142. 班級名單 (Student list) -- TOI練習賽201903新手組第2題 | From: [172.68.87.23] | 發表日期 : 2025-07-04 06:23

#e621. 1. 免費停車 (Free Parking)
day =  int(input())
for d in range(day):

    a,b,c = map(int,input().split())
    p = 0
    for i in range (a+1,b):
        if i % c != 0:
          print(i,end=" ")
          p += 1
    print()
    if p == 0:
        print("No free parking spaces.")

 
ZeroJudge Forum