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 17:22Victor MerckléVictor MerckléScore: 23,228Success
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 17:2823,079686,149,122662,299,0007,003,0002,408,448stderr
2Apr 29, 2026 17:2823,203692,392,163663,916,0008,998,0002,445,312stderr
3Apr 29, 2026 17:2823,215688,993,896665,259,0007,991,0002,433,024stderr
4Apr 29, 2026 17:2823,224691,062,084665,512,0007,994,0002,490,368stderr
5Apr 29, 2026 17:2823,228691,057,269663,639,0009,994,0002,445,312stderr
6Apr 29, 2026 17:2823,234689,647,477662,798,00010,996,0002,408,448stderr
7Apr 29, 2026 17:2823,244698,294,461662,117,00011,984,0002,564,096stderr
8Apr 29, 2026 17:2823,253692,232,286664,360,0009,990,0002,543,616stderr
9Apr 29, 2026 17:2823,271689,679,549664,886,0009,998,0002,449,408stderr