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 10, 2026 09:48limanjun99limanjun99Score: 7,440Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2026 09:487,426235,897,861214,350,0001,001,0002,359,296
2Apr 10, 2026 09:487,428238,336,334214,415,0001,001,0002,453,504
3Apr 10, 2026 09:487,435245,796,607214,602,0001,002,0002,359,296
4Apr 10, 2026 09:487,438237,682,744213,698,0001,997,0002,355,200
5Apr 10, 2026 09:487,440241,539,083215,756,00002,293,760
6Apr 10, 2026 09:487,440246,251,583213,776,0001,997,0002,355,200
7Apr 10, 2026 09:487,441250,720,974214,781,000998,0002,293,760
8Apr 10, 2026 09:487,441243,574,039214,789,000999,0002,359,296
9Apr 10, 2026 09:487,451236,917,734215,085,0001,000,0002,351,104