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:33limanjun99limanjun99Score: 7,671Success
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:337,599243,079,157219,366,0001,001,0002,293,760
2Apr 10, 2026 09:337,604250,298,218220,513,00002,293,760
3Apr 10, 2026 09:337,607247,012,535219,589,0001,002,0002,293,760
4Apr 10, 2026 09:337,650253,467,596219,858,0001,998,0002,293,760
5Apr 10, 2026 09:337,671245,278,810221,465,0001,002,0002,293,760
6Apr 10, 2026 09:337,675256,672,170221,567,0001,002,0002,351,104
7Apr 10, 2026 09:337,693243,720,978221,101,0002,000,0002,359,296
8Apr 10, 2026 09:337,708251,730,571222,528,000997,0002,285,568
9Apr 10, 2026 09:337,716254,862,900222,773,000998,0002,355,200