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 listAug 24, 2024 15:55Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 12:49C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 12:50011,577,64701,779,00024,576No answer to stdout. Died or killed?
2Aug 24, 2024 15:556,650407,477,962192,845,880027,398,144
3Aug 24, 2024 15:556,666411,670,176193,316,201027,385,856
4Aug 24, 2024 15:556,674406,036,104193,545,594027,389,952
5Aug 24, 2024 15:556,954423,599,086175,196,00026,483,00033,976,320
6Aug 24, 2024 15:556,964402,564,925169,952,00031,990,00033,492,992
7Aug 24, 2024 15:556,981415,756,236175,871,00026,585,00033,734,656
8Aug 24, 2024 15:556,989406,583,106173,432,00029,241,00034,062,336
9Aug 24, 2024 15:556,993411,117,734171,675,00031,122,00033,968,128
10Aug 24, 2024 15:557,006416,040,296171,464,00031,716,00033,849,344
11Aug 24, 2024 15:557,006403,861,186174,599,00028,589,00034,029,568
12Aug 24, 2024 15:557,014410,364,663169,846,00033,574,00034,287,616
13Aug 24, 2024 15:557,036400,024,484170,202,00033,841,00034,054,144