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:34Victor MerckléVictor MerckléScore: 13,180Success
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:3513,164395,811,542379,773,0001,998,0002,301,952stderr
2Apr 30, 2026 06:3513,165397,767,189379,790,0001,998,0002,420,736stderr
3Apr 30, 2026 06:3513,165396,745,313380,812,000999,0002,416,640stderr
4Apr 30, 2026 06:3513,180400,025,149381,233,0001,000,0002,416,640stderr
5Apr 30, 2026 06:3513,180402,295,244381,245,0001,000,0002,408,448stderr
6Apr 30, 2026 06:3513,181397,311,962380,269,0001,996,0002,424,832stderr
7Apr 30, 2026 06:3513,185400,277,818379,374,0002,995,0002,420,736stderr
8Apr 30, 2026 06:3513,188396,135,747381,467,0001,001,0002,564,096stderr
9Apr 30, 2026 06:3513,250399,372,896383,274,0001,000,0002,420,736stderr