(python)
x,y,z=input().split()
x,y,z=int(x),int(y),int(z)
for i in ['a','b','c','d','e','f','g','h','i','j']:
if not x:
break
for j in range(y-1,z):
s=''.join([i]*j)
print(i.upper(),s,': hello, ',i.upper(),s,sep='')
x-=1
if not x:
break
為啥筆數不足@@
(python)
x,y,z=input().split()
x,y,z=int(x),int(y),int(z)
for i in ['a','b','c','d','e','f','g','h','i','j']:
if not x:
break
for j in range(y-1,z):
s=''.join([i]*j)
print(i.upper(),s,': hello, ',i.upper(),s,sep='')
x-=1
if not x:
break
為啥筆數不足@@
有一組測資是 100 5 10
我用你的 code 跑起來是 60 筆
(python)
x,y,z=input().split()
x,y,z=int(x),int(y),int(z)
for i in ['a','b','c','d','e','f','g','h','i','j']:
if not x:
break
for j in range(y-1,z):
s=''.join([i]*j)
print(i.upper(),s,': hello, ',i.upper(),s,sep='')
x-=1
if not x:
break
為啥筆數不足@@
有一組測資是 100 5 10
我用你的 code 跑起來是 60 筆
抱歉是我自己沒考慮周到,謝謝
(python)
x,y,z=input().split()
x,y,z=int(x),int(y),int(z)
for i in ['a','b','c','d','e','f','g','h','i','j']:
if not x:
break
for j in range(y-1,z):
s=''.join([i]*j)
print(i.upper(),s,': hello, ',i.upper(),s,sep='')
x-=1
if not x:
break
為啥筆數不足@@
有一組測資是 100 5 10
我用你的 code 跑起來是 60 筆
抱歉是我自己沒考慮周到,謝謝