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 30, 2026 06:41Victor MerckléVictor MerckléScore: 13,168Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 06:4213,161400,652,706379,687,0001,998,0002,420,736stderr
2Apr 30, 2026 06:4213,162403,852,393379,724,0001,998,0002,420,736stderr
3Apr 30, 2026 06:4213,162403,917,943380,704,000999,0002,416,640stderr
4Apr 30, 2026 06:4213,162399,966,529378,716,0002,997,0002,412,544stderr
5Apr 30, 2026 06:4213,168404,966,256379,893,0001,999,0002,420,736stderr
6Apr 30, 2026 06:4213,179401,564,057381,207,0001,000,0002,408,448stderr
7Apr 30, 2026 06:4213,185398,581,662381,386,0001,001,0002,416,640stderr
8Apr 30, 2026 06:4213,185402,352,601380,378,0002,001,0002,404,352stderr
9Apr 30, 2026 06:4213,239404,368,529382,937,000999,0002,412,544stderr