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 18:57TudyMTudyMScore: 4,740Success
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 19:014,735156,359,373136,295,0001,027,0002,371,584
2May 3, 2026 19:014,736157,210,361136,332,0001,031,0002,375,680
3May 3, 2026 19:014,737156,245,572136,279,0001,104,0002,367,488
4May 3, 2026 19:014,738154,161,326136,366,0001,059,0002,367,488
5May 3, 2026 19:014,740152,262,039137,478,00002,375,680
6May 3, 2026 19:014,740157,688,004136,380,0001,083,0002,375,680
7May 3, 2026 19:014,741154,650,119136,443,0001,065,0002,375,680
8May 3, 2026 19:014,744158,191,199136,505,0001,078,0002,359,296
9May 3, 2026 19:014,744152,458,841136,540,0001,055,0002,371,584