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 14:05A_ShamanA_ShamanScore: 11,692Success
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 14:0511,674347,724,635308,759,00029,806,0002,117,632
2Jun 21, 2026 14:0511,679348,029,868308,554,00030,148,0002,117,632
3Jun 21, 2026 14:0511,689348,643,949308,514,00030,480,0002,117,632
4Jun 21, 2026 14:0511,690348,172,813308,563,00030,455,0002,117,632
5Jun 21, 2026 14:0511,692349,386,933308,783,00030,299,0002,117,632
6Jun 21, 2026 14:0511,694349,380,670308,633,00030,497,0002,117,632
7Jun 21, 2026 14:0511,700348,518,441308,768,00030,539,0002,117,632
8Jun 21, 2026 14:0511,709349,644,033308,807,00030,780,0002,117,632
9Jun 21, 2026 14:0511,717349,449,413308,733,00031,083,0002,117,632