ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1150. Page Numbers

what is test#1??
Posted by Xiaohan Yu 10 May 2017 17:29
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??
Posted by Mahilewets 10 May 2017 22:47
Test #1 answer is
1 5 2 (7)1