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 23, 2026 23:30Charles CabergsCharles CabergsScore: 3,726Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 23:303,725121,901,276105,049,0003,001,0002,338,816
2Apr 23, 2026 23:303,726124,868,561105,069,0003,001,0002,318,336
3Apr 23, 2026 23:303,726121,808,618105,061,0003,001,0002,334,720
4Apr 23, 2026 23:303,726124,724,902106,073,0002,001,0002,338,816
5Apr 23, 2026 23:303,726124,993,147106,081,0002,001,0002,318,336
6Apr 23, 2026 23:303,728121,491,455105,121,0003,003,0002,347,008
7Apr 23, 2026 23:303,730124,667,373105,187,0003,005,0002,519,040
8Apr 23, 2026 23:303,730131,286,253105,176,0003,005,0002,338,816
9Apr 23, 2026 23:303,733125,720,669105,250,0003,007,0002,514,944