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 18:35Victor MerckléVictor MerckléScore: 25,137Success
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 18:3525,086743,318,035721,516,0005,995,0002,404,352stderr
2Apr 29, 2026 18:3525,117746,635,233717,409,00010,990,0002,334,720stderr
3Apr 29, 2026 18:3525,129743,021,937722,763,0005,998,0002,441,216stderr
4Apr 29, 2026 18:3525,134747,358,473716,899,00011,998,0002,404,352stderr
5Apr 29, 2026 18:3525,137748,935,354722,005,0006,990,0002,379,776stderr
6Apr 29, 2026 18:3525,146747,800,539722,254,0006,992,0002,342,912stderr
7Apr 29, 2026 18:3525,184745,163,515722,351,0007,992,0002,355,200stderr
8Apr 29, 2026 18:3525,196751,591,151719,715,00010,995,0002,392,064stderr
9Apr 29, 2026 18:3525,220749,353,910720,393,00010,990,0002,367,488stderr