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 listSep 25, 2026 14:11Kevin HeaveyKevin HeaveyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 14:110229,234,114218,329,000020,480Exit with code 3: *l:350309,307519,31188,2507,453,371,374 *r:349379,308441,31083,2563,459,388,408 /l:350171,307583,31119,2579,479,334,387 /r:349859,307929,31154,2527,447,344,392 P:127383,152029,104759,15588,2187,693,460,260,35,2,1,0, S:321781,536063,36...stderr