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 21, 2026 13:56A_ShamanA_ShamanScore: 9,537Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:599,525285,718,004257,693,00018,548,0002,117,632
2Jun 21, 2026 13:599,530286,014,717257,540,00018,843,0002,117,632
3Jun 21, 2026 13:599,534286,205,110257,909,00018,602,0002,117,632
4Jun 21, 2026 13:599,536286,232,716258,219,00018,337,0002,117,632
5Jun 21, 2026 13:599,537286,187,346257,742,00018,846,0002,117,632
6Jun 21, 2026 13:599,541285,889,813257,998,00018,694,0002,117,632
7Jun 21, 2026 13:599,543286,000,857258,052,00018,720,0002,117,632
8Jun 21, 2026 13:599,547286,295,951257,776,00019,102,0002,117,632
9Jun 21, 2026 13:599,554286,262,558258,108,00018,965,0002,117,632