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 20:26TudyMTudyMScore: 4,592Success
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 20:274,583149,597,767132,910,00002,375,680
2May 3, 2026 20:274,584149,738,308132,964,00002,367,488
3May 3, 2026 20:274,588149,836,923132,031,0001,036,0002,379,776
4May 3, 2026 20:274,591149,491,641133,152,00002,371,584
5May 3, 2026 20:274,592149,156,758132,137,0001,048,0002,379,776
6May 3, 2026 20:274,593148,462,553132,139,0001,065,0002,375,680
7May 3, 2026 20:274,593152,249,445132,180,0001,045,0002,375,680
8May 3, 2026 20:274,597147,041,729132,286,0001,030,0002,375,680
9May 3, 2026 20:274,597152,614,219132,292,0001,023,0002,375,680