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 22:09Victor MerckléVictor MerckléScore: 16,297Success
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 22:0916,230490,543,606468,692,0002,002,0002,506,752stderr
2Apr 29, 2026 22:0916,235489,383,366468,825,0001,999,0002,498,560stderr
3Apr 29, 2026 22:0916,241485,547,122468,010,0003,000,0002,318,336stderr
4Apr 29, 2026 22:0916,261495,674,100469,588,0001,998,0002,502,656stderr
5Apr 29, 2026 22:0916,297494,163,653471,624,000999,0002,494,464stderr
6Apr 29, 2026 22:0916,305489,148,416470,870,0001,999,0002,326,528stderr
7Apr 29, 2026 22:0916,369491,696,333471,714,0002,998,0002,506,752stderr
8Apr 29, 2026 22:0916,379494,244,137471,994,0002,999,0002,494,464stderr
9Apr 29, 2026 22:0916,395494,091,326472,470,0002,996,0002,506,752stderr