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 listNov 18, 2025 03:35izotoffizotoffError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:12C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:12014,363,54301,880,00049,152Exit with code 2: unexpected fault address 0x2002 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0x2002 pc=0x499eaf] goroutine 1 gp=0xc000002380 m=0 mp=0x570b20 [running]: runtime.throw({0x4bd854?, 0xe?}) /compiler/src/runti...stderr
2Nov 18, 2025 03:357,183228,609,327208,309,00002,424,832
3Nov 18, 2025 03:357,185231,257,515208,366,00002,420,736
4Nov 18, 2025 03:357,189236,754,260208,479,00002,412,544