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 listJul 30, 2026 11:27Andrew TsibinAndrew TsibinScore: 3,666Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2026 11:283,663117,198,838103,241,0003,007,0002,113,536
2Jul 30, 2026 11:283,663116,505,041103,254,0002,993,0002,113,536
3Jul 30, 2026 11:283,664116,458,093103,246,0003,035,0002,113,536
4Jul 30, 2026 11:283,665116,420,990103,281,0003,018,0002,113,536
5Jul 30, 2026 11:283,666116,568,267103,329,0003,008,0002,113,536
6Jul 30, 2026 11:283,666116,525,822103,302,0003,040,0002,113,536
7Jul 30, 2026 11:283,667116,500,503103,216,0003,138,0002,113,536
8Jul 30, 2026 11:283,669117,340,636103,395,0003,016,0002,113,536
9Jul 30, 2026 11:283,883122,838,417109,602,0003,014,0002,113,536