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 listMay 3, 2026 19:43TudyMTudyMScore: 4,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 19:474,725153,452,537137,035,00002,371,584
2May 3, 2026 19:474,728155,284,449136,102,0001,016,0002,367,488
3May 3, 2026 19:474,731153,532,920136,139,0001,061,0002,359,296
4May 3, 2026 19:474,731152,275,356136,127,0001,085,0002,379,776
5May 3, 2026 19:474,732151,640,041136,186,0001,069,0002,367,488
6May 3, 2026 19:474,734156,428,524136,241,0001,062,0002,375,680
7May 3, 2026 19:474,737155,944,259136,378,0001,018,0002,371,584
8May 3, 2026 19:474,737154,428,841136,312,0001,070,0002,367,488
9May 3, 2026 19:474,739155,107,963136,368,0001,073,0002,371,584