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 29, 2026 19:17Charles CabergsCharles CabergsScore: 42,975Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 19:1842,9241,263,707,3601,241,799,0002,997,0002,519,040stderr
2Apr 29, 2026 19:1842,9291,261,446,8971,243,961,000999,0002,506,752stderr
3Apr 29, 2026 19:1842,9491,261,715,0111,244,537,000999,0002,318,336stderr
4Apr 29, 2026 19:1842,9561,264,563,3641,243,746,0001,997,0002,322,432stderr
5Apr 29, 2026 19:1842,9751,263,899,7971,242,298,0003,994,0002,289,664stderr
6Apr 29, 2026 19:1843,0261,267,504,4961,245,763,0001,998,0002,318,336stderr
7Apr 29, 2026 19:1843,0271,265,979,9801,244,806,0002,997,0002,326,528stderr
8Apr 29, 2026 19:1843,0331,266,778,2771,246,977,000999,0002,334,720stderr
9Apr 29, 2026 19:1843,9391,296,331,5551,240,260,00033,979,0002,322,432stderr