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 22, 2026 13:02BenBenScore: 7,931Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 13:027,917249,304,916215,582,00014,037,0002,379,776
2Apr 22, 2026 13:027,917248,046,850207,536,00022,057,0002,383,872
3Apr 22, 2026 13:027,918245,931,360204,574,00025,070,0002,379,776
4Apr 22, 2026 13:027,922249,098,290205,774,00023,973,0002,387,968
5Apr 22, 2026 13:027,931245,647,490206,006,00024,000,0002,392,064
6Apr 22, 2026 13:027,943251,313,473211,335,00019,030,0002,387,968
7Apr 22, 2026 13:027,950253,022,056204,625,00025,952,0002,383,872
8Apr 22, 2026 13:027,953249,220,228213,667,00016,973,0002,322,432
9Apr 22, 2026 13:027,957245,308,371203,807,00026,974,0002,379,776