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 16:22Victor MerckléVictor MerckléScore: 7,440Success
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 16:257,371229,592,998210,775,0002,996,0002,547,712
2Apr 29, 2026 16:257,373233,355,809210,839,0002,997,0002,560,000
3Apr 29, 2026 16:257,387234,231,707212,221,0002,002,0002,551,808
4Apr 29, 2026 16:257,416231,621,874212,071,0003,001,0002,555,904
5Apr 29, 2026 16:257,440233,750,019213,782,0001,997,0002,551,808
6Apr 29, 2026 16:257,453235,956,387214,145,0002,001,0002,543,616
7Apr 29, 2026 16:257,481242,934,156214,964,0001,999,0002,543,616
8Apr 29, 2026 16:257,508237,314,371214,761,0002,996,0002,555,904
9Apr 29, 2026 16:257,509233,868,646215,783,0001,997,0002,543,616