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 21:28TudyMTudyMScore: 4,409Success
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 21:294,399143,650,790127,596,00002,363,392
2May 3, 2026 21:294,402147,216,864127,672,00002,363,392
3May 3, 2026 21:294,405144,472,662127,767,00002,367,488
4May 3, 2026 21:294,409143,482,851127,887,00002,363,392
5May 3, 2026 21:294,409142,827,880127,874,00002,363,392
6May 3, 2026 21:294,409146,771,596127,882,00002,367,488
7May 3, 2026 21:294,410144,931,591126,834,0001,070,0002,359,296
8May 3, 2026 21:294,412144,476,062126,892,0001,075,0002,367,488
9May 3, 2026 21:294,413145,818,423126,920,0001,081,0002,355,200