- Ones/1002 . . . . 5 matches
def ones(aValue):
theOnes = "1"
onesValue = int(theOnes)
if isMultiplyOf(onesValue,aValue):
return len(theOnes)
theOnes += "1"
class OnesTest(unittest.TestCase):
self.assertEquals(3, ones(3))
self.assertEquals(6, ones(7))
self.assertEquals(9, ones(9))
self.assertEquals(12, ones(9901))
print ones(int(raw_input()))
- ACM_ICPC/2011년스터디 . . . . 3 matches
* [http://poj.org/problem?id=2551 2551 Ones/송지원]
* [Ones/송지원]
* [Ones/정진경]
- AOI/2004 . . . . 1 match
|| [Ones] || . || . || O || . || . || . || . || . ||
Found 3 matching pages out of 7557 total pages (3450 pages are searched)
You can also click here to search title.