repl.it
@anonymous/

FrizzySlightAfricangoldencat

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def ungolfed(x):
    if x>70:
        ungolfed(x/10  - x%10 *2)
    else:
        return x
        
f=lambda x:f(x/10-x%10*2)if x>70else x

print f(1)
print f(10)
print f(100)
print f(13)
print f(42)
print f(2016)
print f(9)
print f(99)
print f(9999)
print f(12345)
print f(700168844221)
print f(36893488147419103232)