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 listJun 26, 2026 17:09A_ShamanA_ShamanScore: 8,536Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 17:098,488255,441,272229,067,00017,109,0002,113,536
2Jun 26, 2026 17:098,513256,902,554230,156,00016,748,0002,113,536
3Jun 26, 2026 17:098,522256,905,489229,784,00017,359,0002,113,536
4Jun 26, 2026 17:098,530257,087,503229,863,00017,515,0002,113,536
5Jun 26, 2026 17:098,536257,857,847230,286,00017,282,0002,113,536
6Jun 26, 2026 17:098,536257,325,668230,438,00017,120,0002,113,536
7Jun 26, 2026 17:098,545257,421,055230,475,00017,352,0002,113,536
8Jun 26, 2026 17:098,547257,377,054230,603,00017,261,0002,113,536
9Jun 26, 2026 17:098,552257,741,094230,330,00017,687,0002,113,536