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 listSep 21, 2021 03:40Yuriy LyfenkoYuriy LyfenkoScore: 6,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 03:406,135973,338,280177,919,711027,455,488
2Sep 21, 2021 03:406,163964,411,778178,713,359027,451,392
3Sep 21, 2021 03:406,1861,033,706,555179,382,926027,455,488
4Sep 21, 2021 03:406,558896,116,168159,986,00030,186,00034,013,184
5Sep 21, 2021 03:406,560885,347,438161,915,00028,335,00033,751,040
6Sep 21, 2021 03:406,569875,144,785159,419,00031,081,00033,509,376
7Sep 21, 2021 03:406,576900,795,622154,708,00036,001,00034,164,736
8Sep 21, 2021 03:406,586897,595,757159,988,00030,997,00033,947,648
9Sep 21, 2021 03:406,587897,259,030160,019,00031,003,00034,459,648
10Sep 21, 2021 03:406,594899,972,100154,517,00036,697,00033,890,304
11Sep 21, 2021 03:406,602885,948,162156,124,00035,348,00034,025,472
12Sep 21, 2021 03:406,605890,172,538169,310,00022,221,00034,013,184