Timeline for Simple integer operation calculator
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2016 at 23:08 | history | edited | Destructible Lemon | CC BY-SA 3.0 |
added 2 characters in body
|
Aug 29, 2016 at 13:48 | comment | added | Yytsi | Add the title Python3 please. | |
Aug 29, 2016 at 10:21 | comment | added | Yytsi | oh yes, my mistake. | |
Aug 29, 2016 at 9:26 | history | edited | Destructible Lemon | CC BY-SA 3.0 |
added 22 characters in body
|
Aug 29, 2016 at 9:23 | comment | added | Destructible Lemon |
@TuukkaX doesn't work for z=0 (+- does 1)
|
|
Aug 29, 2016 at 7:11 | comment | added | Yytsi |
By applying part of your recursive solution to the procedural version: 60 bytes: i=0 for c in input():i+=[1,-i//2,-1,i][ord(c)%23%4] print(i) . (not formatted properly of course). Also I think you should mention that you're using Python3. In Python2, input() would evaluate to int(raw_input()) .
|
|
Aug 29, 2016 at 2:32 | history | edited | Destructible Lemon | CC BY-SA 3.0 |
added 16 characters in body
|
Aug 29, 2016 at 2:13 | history | edited | Destructible Lemon | CC BY-SA 3.0 |
added 149 characters in body
|
Aug 29, 2016 at 1:54 | history | edited | Destructible Lemon | CC BY-SA 3.0 |
added 36 characters in body
|
Aug 29, 2016 at 0:08 | history | answered | Destructible Lemon | CC BY-SA 3.0 |