Love丶FFC's Blog
正整数 A 的“DA(为 1 位整数)部分”定义为由 A 中所有 DA 组成的新整数 PA。例如:给定 A=3862767,DA=6,则 A 的“6 部分”PA 是 66,因为 A 中有 2 个 6。
现给定 A、DA、B、DB,请编写程序计算 PA+PB。
输入在一行中依次给出 A、DA、B、DB,中间以空格分隔,其中 0<A,B<1010。
在一行中输出 PA+PB 的值。
3862767 6 13530293 3
399
3862767 1 13530293 8
0
1.注意没有PA、PB的情况
A, DA, B, DB = input().split() PA, PB = '', '' # 存放结果 # 寻找PA、PB for i in range(len(A)): if A[i] == DA: PA += DA for i in range(len(B)): if B[i] == DB: PB += DB # 判断PA、PB是否有值 if len(PA) == 0: # 没有值则置为0 PA = 0 else: PA = int(PA) if len(PB) == 0: PB = 0 else: PB = int(PB) print(PA + PB)
fruinly
Of course, to say that they like her very Anderson siddha medicine for type 1 diabetes in tamil much, it must not exist 36 hour cialis online Kohler PC, Hamm JT, Wiebe VJ, DeGregorio MW, Shemano I, Tormey DC
engarma
Martin found that improve male steroid works hard, this website buy cialis generic online cheap Although the route to a flotation is well underway, with the Government appointing a host of banks including Goldman Sachs and UBS, business minister Michael Fallon has spoken of a Plan B private equity sale if the listing falls through
louis vuitton outlet online
I just wanted to thank you for the fast service. or perhaps they look great. I received them a day earlier than expected. which includes the I will definitely continue to buy from this site. regardless I will recommend this site to my friends. Thanks!
louis vuitton outlet online https://www.louisvuittonsoutletstore.com/
louis vuitton outlet
I just wanted to thank you for the fast service. or maybe they look great. I received them a day earlier than expected. significantly I will definitely continue to buy from this site. anyway I will recommend this site to my friends. Thanks!
louis vuitton outlet https://www.cheapreallouisvuitton.com/
cheap louis vuitton online
I just wanted to thank you for the fast service. and also they look great. I received them a day earlier than expected. which include the I will definitely continue to buy from this site. in either case I will recommend this site to my friends. Thanks!
cheap louis vuitton online https://www.bestlouisvuittonoutlet.com/
cheap jordans
I just wanted to thank you for the fast service. or perhaps they look great. I received them a day earlier than expected. much like the I will definitely continue to buy from this site. an invaluable I will recommend this site to my friends. Thanks!
cheap jordans https://www.realcheapretrojordanshoes.com/
original louis vuittons outlet
Read reviews and was a little hesitant since I had already inputted my order. or maybe but thank god, I had no issues. since the received item in a timely matter, they are in new condition. anyway so happy I made the purchase. Will be definitely be purchasing again.
original louis vuittons outlet https://www.cheaplouisvuittonsale.com/
louis vuittons outlet
Read reviews and was a little hesitant since I had already inputted my order. in addition to but thank god, I had no issues. much like the received item in a timely matter, they are in new condition. blue jays so happy I made the purchase. Will be definitely be purchasing again.
louis vuittons outlet https://www.louisvuittonsoutlet.com/
cheap jordans for sale
Read reviews and was a little hesitant since I had already inputted my order. or but thank god, I had no issues. like received item in a timely matter, they are in new condition. an invaluable so happy I made the purchase. Will be definitely be purchasing again.
cheap jordans for sale https://www.realjordansretro.com/
cheap retro jordans
Read reviews and was a little hesitant since I had already inputted my order. or alternatively but thank god, I had no issues. most notably received item in a timely matter, they are in new condition. regardless so happy I made the purchase. Will be definitely be purchasing again.
cheap retro jordans https://www.realjordansshoes.com/
louis vuitton outlet
Read reviews and was a little hesitant since I had already inputted my order. or it may be but thank god, I had no issues. cherish the received item in a timely matter, they are in new condition. in either case so happy I made the purchase. Will be definitely be purchasing again.
louis vuitton outlet https://www.louisvuittonsoutletonline.com/
Preliaf
We were so excited to have triplets cheap viagra online Your hearing specialist will ask you about the ototoxic medication you take in order to appropriately understand and monitor any hearing issues that may arise
Preliaf
The results of this study demonstrated that CoQ10 supplementation preserves ovarian reserve and improves mitochondrial performance in oocytes and ovulation rates cheapest cialis desogen micardis 80 fiyat But people are more willing to take action now if they think there is a problem and the cost of advice is relatively high