Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listAug 14, 2026 12:37marko1597marko1597Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 11:11Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 11:12025,074,10314,049,0001,088,00016,384No answer to stdout. Died or killed?
2Aug 14, 2026 12:443,07199,128,89786,660,0002,406,0002,113,536
3Aug 14, 2026 12:443,07299,131,32486,663,0002,441,0002,113,536
4Aug 14, 2026 12:443,07299,092,08486,648,0002,449,0002,113,536
5Aug 14, 2026 12:443,07399,166,06386,691,0002,447,0002,113,536
6Aug 14, 2026 12:443,07499,208,07486,713,0002,443,0002,113,536
7Aug 14, 2026 12:443,07699,196,26186,693,0002,523,0002,113,536
8Aug 14, 2026 12:443,07899,311,59886,697,0002,572,0002,113,536
9Aug 14, 2026 12:443,079100,975,37486,655,0002,648,0002,113,536
10Aug 14, 2026 12:443,080100,095,50386,777,0002,561,0002,113,536