|
|
вернуться в форумwhat is test#1?? here is my code im getting test# 1 WA btw im using python 2.7 import sys print sys.argv pages = raw_input() pages = int(pages) nums = [0]*10 def countingNums(pages): global nums if pages == 0: return "" else: sPages = str(pages) for i in range(len(sPages)): nums[int(sPages[i])] += 1 return countingNums(pages-1) countingNums(pages) for i in range(len(nums)): print nums[i] Edited by author 10.05.2017 17:30 Re: what is test#1?? Test #1 answer is 1 5 2 (7)1 |
|
|