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 22, 2026 11:06A_ShamanA_ShamanScore: 9,314Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 11:079,277278,391,622246,165,00022,875,0002,117,632
2Jun 22, 2026 11:079,294278,869,849245,893,00023,658,0002,117,632
3Jun 22, 2026 11:079,297278,963,213246,528,00023,088,0002,117,632
4Jun 22, 2026 11:079,310279,763,580245,791,00024,224,0002,117,632
5Jun 22, 2026 11:079,314279,754,960246,291,00023,838,0002,117,632
6Jun 22, 2026 11:079,316279,813,317245,776,00024,395,0002,117,632
7Jun 22, 2026 11:079,329279,834,154246,345,00024,197,0002,117,632
8Jun 22, 2026 11:079,334280,474,427246,341,00024,350,0002,117,632
9Jun 22, 2026 11:079,354280,563,870246,690,00024,589,0002,117,632