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 31, 2026 08:39Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 14:32Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 16:15019,238,29511,114,000073,728No answer to stdout. Died or killed?
2Aug 31, 2026 08:431,91163,750,11654,425,0001,007,0002,134,016stderr
3Aug 31, 2026 08:431,91263,753,52954,447,0001,017,0002,174,976stderr
4Aug 31, 2026 08:431,91563,897,60254,464,0001,084,0002,174,976stderr
5Aug 31, 2026 08:431,91763,790,76354,511,0001,092,0002,174,976stderr
6Aug 31, 2026 08:431,92864,248,29054,921,0001,014,0002,134,016stderr
7Aug 31, 2026 08:431,93064,336,10354,918,0001,063,0002,138,112stderr
8Aug 31, 2026 08:431,93164,330,38554,956,0001,065,0002,134,016stderr
9Aug 31, 2026 08:431,93264,389,33754,977,0001,068,0002,138,112stderr
10Aug 31, 2026 08:431,94164,672,47555,231,0001,070,0002,134,016stderr