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 listOct 9, 2026 08:09janwwwjanwwwScore: 3,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 08:133,02098,078,94286,457,0001,127,0002,113,536
2Oct 9, 2026 08:133,02398,300,73886,532,0001,155,0002,113,536
3Oct 9, 2026 08:133,02698,517,68586,599,0001,159,0002,113,536
4Oct 9, 2026 08:133,03198,436,39386,777,0001,136,0002,113,536
5Oct 9, 2026 08:133,033118,072,23186,888,0001,089,0002,113,536
6Oct 9, 2026 08:133,03598,649,63687,002,0001,039,0002,113,536
7Oct 9, 2026 08:133,036109,439,11887,063,0001,008,0002,113,536
8Oct 9, 2026 08:133,03998,740,72286,986,0001,155,0002,113,536
9Oct 9, 2026 08:133,364108,178,35596,423,0001,146,0002,113,536