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:34Andrew TsibinAndrew TsibinScore: 3,680Success
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:343,676116,837,855104,209,0002,408,0002,113,536
2Jul 30, 2026 11:343,677116,842,816104,266,0002,388,0002,113,536
3Jul 30, 2026 11:343,678116,893,468104,364,0002,321,0002,113,536
4Jul 30, 2026 11:343,679116,859,173104,300,0002,403,0002,113,536
5Jul 30, 2026 11:343,680116,963,230104,318,0002,425,0002,113,536
6Jul 30, 2026 11:343,680116,828,801104,299,0002,431,0002,113,536
7Jul 30, 2026 11:343,683117,011,834104,386,0002,428,0002,113,536
8Jul 30, 2026 11:343,683117,080,205104,413,0002,414,0002,113,536
9Jul 30, 2026 11:343,686117,060,319104,335,0002,575,0002,113,536