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:54A_ShamanA_ShamanScore: 7,988Success
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:557,980240,770,442213,189,00018,244,0002,117,632
2Jun 21, 2026 13:557,983240,820,488213,195,00018,335,0002,117,632
3Jun 21, 2026 13:557,985240,893,110213,211,00018,361,0002,117,632
4Jun 21, 2026 13:557,985241,341,075213,221,00018,347,0002,117,632
5Jun 21, 2026 13:557,988240,980,446213,085,00018,594,0002,117,632
6Jun 21, 2026 13:557,993241,474,635213,216,00018,586,0002,117,632
7Jun 21, 2026 13:558,002241,739,796213,244,00018,833,0002,117,632
8Jun 21, 2026 13:558,004241,793,918213,239,00018,886,0002,117,632
9Jun 21, 2026 13:558,018242,242,811213,343,00019,187,0002,117,632