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 listApr 20, 2026 18:06Charles CabergsCharles CabergsScore: 5,414Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 18:085,394177,388,087154,440,0002,005,0002,502,656
2Apr 20, 2026 18:085,396181,724,685154,490,0002,006,0002,506,752
3Apr 20, 2026 18:085,405181,450,578153,770,0002,995,0002,281,472
4Apr 20, 2026 18:085,408173,536,712153,839,0002,996,0002,281,472
5Apr 20, 2026 18:085,414181,547,667154,009,0003,000,0002,494,464
6Apr 20, 2026 18:085,416186,641,702155,087,0002,001,0002,506,752
7Apr 20, 2026 18:085,420182,161,266154,195,0003,003,0002,285,568
8Apr 20, 2026 18:085,422186,722,189154,255,0003,004,0002,502,656
9Apr 20, 2026 18:085,426180,461,595155,351,0002,004,0002,494,464