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 13, 2026 17:34Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:34C#_user91.34CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:34010,178,07601,943,00020,480No answer to stdout. Died or killed?
2Aug 13, 2026 17:352,68586,294,80775,009,0002,874,0002,121,728stderr
3Aug 13, 2026 17:352,68786,331,90175,062,0002,877,0002,121,728stderr
4Aug 13, 2026 17:352,68787,137,27375,056,0002,868,0002,121,728stderr
5Aug 13, 2026 17:352,68986,513,88475,117,0002,886,0002,121,728stderr
6Aug 13, 2026 17:352,68986,360,10875,945,0002,047,0002,121,728stderr
7Aug 13, 2026 17:352,68986,496,27075,124,0002,858,0002,121,728stderr
8Aug 13, 2026 17:352,69087,153,79775,165,0002,858,0002,121,728stderr
9Aug 13, 2026 17:352,69187,172,20575,192,0002,863,0002,121,728stderr
10Aug 13, 2026 17:352,69286,578,62675,207,0002,861,0002,121,728stderr