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 listJul 9, 2026 01:23Victor MerckléVictor MerckléScore: 12,635Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 01:2312,624375,640,626364,995,0001,118,0002,117,632stderr
2Jul 9, 2026 01:2312,632375,799,411365,226,0001,108,0002,117,632stderr
3Jul 9, 2026 01:2312,633375,969,860365,247,0001,119,0002,117,632stderr
4Jul 9, 2026 01:2312,635376,040,262365,418,0001,001,0002,117,632stderr
5Jul 9, 2026 01:2312,635376,013,894365,422,0001,003,0002,117,632stderr
6Jul 9, 2026 01:2312,635375,973,897365,410,0001,024,0002,117,632stderr
7Jul 9, 2026 01:2312,638376,652,481365,388,0001,124,0002,117,632stderr
8Jul 9, 2026 01:2312,639376,112,503365,529,0001,017,0002,117,632stderr
9Jul 9, 2026 01:2312,643376,215,372365,649,0001,001,0002,117,632stderr