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:31TudyMTudyMScore: 4,427Success
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:314,424146,441,081128,321,00002,363,392
2May 3, 2026 20:314,425146,531,942128,349,00002,371,584
3May 3, 2026 20:314,426146,409,945127,348,0001,010,0002,375,680
4May 3, 2026 20:314,427146,693,899128,397,00002,367,488
5May 3, 2026 20:314,427146,572,978127,371,0001,036,0002,363,392
6May 3, 2026 20:314,428144,957,694127,375,0001,039,0002,375,680
7May 3, 2026 20:314,429145,630,075127,403,0001,038,0002,375,680
8May 3, 2026 20:314,429146,933,459127,414,0001,049,0002,379,776
9May 3, 2026 20:314,430144,446,604127,430,0001,052,0002,367,488