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:26TudyMTudyMScore: 4,116Success
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:264,109138,638,165118,161,0001,013,0002,375,680
2May 3, 2026 21:264,110135,994,016119,197,00002,379,776
3May 3, 2026 21:264,113137,888,992119,286,00002,363,392
4May 3, 2026 21:264,114133,833,221118,289,0001,041,0002,363,392
5May 3, 2026 21:264,116136,273,478118,338,0001,027,0002,371,584
6May 3, 2026 21:264,117137,107,810118,360,0001,040,0002,371,584
7May 3, 2026 21:264,121137,389,999118,467,0001,051,0002,363,392
8May 3, 2026 21:264,126138,636,267118,615,0001,039,0002,367,488
9May 3, 2026 21:264,158139,559,777119,566,0001,040,0002,367,488