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 listJun 12, 2026 15:29Victor MerckléVictor MerckléScore: 3,046Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2026 15:333,04198,487,88687,000,0001,213,0002,174,976
2Jun 12, 2026 15:333,04497,258,42587,272,0001,018,0002,129,920
3Jun 12, 2026 15:333,04497,274,78287,278,0001,017,0002,129,920
4Jun 12, 2026 15:333,04597,361,83487,299,0001,017,0002,129,920
5Jun 12, 2026 15:333,04697,330,60887,326,0001,018,0002,129,920
6Jun 12, 2026 15:333,04797,427,51787,354,0001,018,0002,129,920
7Jun 12, 2026 15:333,04797,463,18287,371,0001,020,0002,129,920
8Jun 12, 2026 15:333,04797,360,78287,349,0001,018,0002,129,920
9Jun 12, 2026 15:333,04897,332,54187,375,0001,018,0002,129,920