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 03:15Charles CabergsCharles CabergsScore: 4,749Success
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 03:164,716152,051,889134,768,0001,996,0002,318,336stderr
2Apr 29, 2026 03:164,722156,234,230133,940,0002,998,0002,519,040stderr
3Apr 29, 2026 03:164,739152,952,733135,428,0002,006,0002,514,944stderr
4Apr 29, 2026 03:164,742154,039,306135,531,0002,007,0002,338,816stderr
5Apr 29, 2026 03:164,749159,349,313134,744,0002,994,0002,506,752stderr
6Apr 29, 2026 03:164,750156,814,899134,773,0002,994,0002,330,624stderr
7Apr 29, 2026 03:164,750155,832,243134,772,0002,994,0002,314,240stderr
8Apr 29, 2026 03:164,752151,896,906134,819,0002,995,0002,519,040stderr
9Apr 29, 2026 03:164,769155,116,858136,300,0002,004,0002,514,944stderr