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 2, 2026 05:38Josu San MartinJosu San MartinScore: 5,461Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 05:385,458186,200,968157,290,0001,001,0002,342,912
2Jan 2, 2026 05:385,460183,405,746157,325,0001,002,0002,293,760
3Jan 2, 2026 05:385,460180,560,414158,336,00002,342,912
4Jan 2, 2026 05:385,461184,085,420157,355,0001,002,0002,347,008
5Jan 2, 2026 05:385,461184,349,589157,362,0001,002,0002,289,664
6Jan 2, 2026 05:385,462184,815,758157,384,0001,002,0002,289,664
7Jan 2, 2026 05:385,462183,953,839157,387,0001,002,0002,342,912
8Jan 2, 2026 05:385,464180,350,136158,469,00002,334,720
9Jan 2, 2026 05:385,465179,431,159157,484,0001,003,0002,334,720