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 listJun 4, 2026 18:44Victor MerckléVictor MerckléScore: 3,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2026 18:453,04697,622,46787,230,0001,120,0002,113,536
2Jun 4, 2026 18:453,04697,558,54387,234,0001,113,0002,113,536
3Jun 4, 2026 18:453,04797,655,32587,273,0001,114,0002,113,536
4Jun 4, 2026 18:453,04899,511,59687,291,0001,128,0002,113,536
5Jun 4, 2026 18:453,04897,736,10487,392,0001,027,0002,113,536
6Jun 4, 2026 18:453,04997,713,77987,426,0001,013,0002,113,536
7Jun 4, 2026 18:453,04997,710,20687,402,0001,021,0002,113,536
8Jun 4, 2026 18:453,04997,730,90187,405,0001,027,0002,113,536
9Jun 4, 2026 18:453,05097,772,02287,446,0001,032,0002,113,536