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 3, 2026 06:50KeefeKeefeScore: 4,767Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2026 06:504,762159,276,203137,111,0001,000,0002,269,184
2Jan 3, 2026 06:504,763163,389,418136,134,0002,001,0002,392,064
3Jan 3, 2026 06:504,764164,606,228138,146,00002,404,352
4Jan 3, 2026 06:504,766164,704,182138,200,00002,392,064
5Jan 3, 2026 06:504,767161,201,300137,251,0001,001,0002,269,184
6Jan 3, 2026 06:504,768163,981,988137,260,0001,001,0002,396,160
7Jan 3, 2026 06:504,769164,611,399138,289,00002,269,184
8Jan 3, 2026 06:504,772162,781,582137,377,0001,002,0002,400,256
9Jan 3, 2026 06:504,772161,435,016137,382,0001,002,0002,269,184