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 listJan 2, 2026 18:57Josu San MartinJosu San MartinScore: 6,020Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 19:146,016196,537,175174,465,00002,326,528
2Jan 2, 2026 18:576,019205,307,345173,558,0001,003,0002,289,664
3Jan 2, 2026 19:146,019197,563,530173,543,0001,003,0002,342,912
4Jan 2, 2026 18:116,020203,110,100173,583,0001,003,0002,338,816
5Jan 2, 2026 19:146,020205,347,185173,582,0001,003,0002,342,912
6Jan 2, 2026 18:116,028199,673,494173,825,000998,0002,330,624
7Jan 2, 2026 18:116,029199,278,091173,844,000999,0002,285,568
8Jan 2, 2026 18:576,029198,019,888172,843,0001,998,0002,289,664
9Jan 2, 2026 18:576,032205,250,705173,917,000999,0002,338,816