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 listApr 20, 2026 16:32BenBenScore: 7,405Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 16:357,392244,610,456193,342,00021,037,0002,367,488
2Apr 20, 2026 16:357,394242,419,021193,393,00021,042,0002,355,200
3Apr 20, 2026 16:357,395241,699,205191,415,00023,049,0002,355,200
4Apr 20, 2026 16:357,398247,140,395194,493,00020,050,0002,363,392
5Apr 20, 2026 16:357,405242,750,486189,780,00024,971,0002,367,488
6Apr 20, 2026 16:357,405243,363,170191,781,00022,973,0002,363,392
7Apr 20, 2026 16:357,413243,163,489192,001,00023,000,0002,375,680
8Apr 20, 2026 16:357,416241,640,483194,080,00021,008,0002,367,488
9Apr 20, 2026 16:357,420240,779,905193,180,00022,020,0002,363,392