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 listOct 31, 2021 14:28Ilya AniskovetsIlya AniskovetsScore: 5,548Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2021 14:285,250443,433,334152,245,152027,459,584
2Oct 31, 2021 14:285,265613,576,125152,680,966027,492,352
3Oct 31, 2021 14:285,272490,322,543152,878,527027,455,488
4Oct 31, 2021 14:285,527369,324,525132,550,00027,743,00033,488,896
5Oct 31, 2021 14:285,539349,615,129126,344,00034,279,00033,701,888
6Oct 31, 2021 14:285,545343,680,594131,477,00029,329,00033,570,816
7Oct 31, 2021 14:285,548366,128,763131,358,00029,530,00033,943,552
8Oct 31, 2021 14:285,556368,727,633133,248,00027,889,00034,258,944
9Oct 31, 2021 14:285,557363,985,536135,867,00025,277,00034,160,640
10Oct 31, 2021 14:285,570357,954,938136,195,00025,338,00033,718,272
11Oct 31, 2021 14:285,593373,242,250138,710,00023,474,00034,205,696
12Oct 31, 2021 14:285,621356,348,331144,542,00018,475,00033,816,576