EPROBLEM - A Very Easy Problem! (Challenge Mode)
This is challenge version of A Very Easy Problem!. Given integer i, Your task is to convert integer i into http://www.spoj.com/problems/EASYPROB/ format.
Score is the length of your source.
Input
There are multiple test cases, each line contain an integer i(0 < i < 264). Process input until EOF.
Output
For each case, output the converted number in separate line.
Example
Input: 137
1315 Output: 137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)
hide comments
Francky:
2012-07-13 22:15:49
Warning, input should be big !!! Why ?
|
Added by: | Tjandra Satria Gunawan |
Date: | 2012-07-13 |
Time limit: | 1.997s |
Source limit: | 300B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM32-GCC ASM64 MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET |
Resource: | A Very Easy Problem! (Classical Mode) |