Larisa-HSU / SCU_Python_Learning

homework1
0 stars 0 forks source link

HW1(範例) #1

Open Larisa-HSU opened 3 years ago

Larisa-HSU commented 3 years ago

09156202 徐如怡(副標題)

(下面的「```」後放置程式碼)

(放置50字心得,在"##"之後、"```"之前) 哈囉

ccc=input()
s=ccc.split(" ")
b=s[:]
a=[]
temp=0
count="1"
for i in range(len(s)):
    min(b)
    temp=min(b)
    b.remove(temp)
    a.append(temp)

for i in range(len(a)):
    for j in range(len(s)):
        if(int(a[i])==int(s[j])):
            temp=int(temp)+1
            s[j]=str(temp)
            print(j,end=" ")
            break
Larisa-HSU commented 3 years ago

HW_01跨夜部分: 如果進場時間為11:20 出場時間為11:19 則稱跨夜停車 此時要把出場時間改為23:59 算今日停車費用即可