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 20, 2021 18:59Ilya AniskovetsIlya AniskovetsScore: 6,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:596,292375,366,127147,345,00035,128,00033,636,352
2Sep 20, 2021 18:596,293363,846,100153,957,00028,548,00033,492,992
3Sep 20, 2021 18:596,301650,799,761182,734,919027,377,664
4Sep 20, 2021 18:596,305395,350,983150,053,00032,793,00034,004,992
5Sep 20, 2021 18:596,307379,885,263150,095,00032,802,00033,423,360
6Sep 20, 2021 18:596,323388,095,768150,491,00032,888,00033,947,648
7Sep 20, 2021 18:596,334541,199,951183,686,648027,455,488
8Sep 20, 2021 18:596,336456,707,383183,756,409027,459,584
9Sep 20, 2021 18:596,338393,009,605152,490,00031,306,00033,914,880
10Sep 20, 2021 18:596,341400,230,648152,567,00031,321,00033,914,880
11Sep 20, 2021 18:596,346387,649,817154,222,00029,816,00033,525,760
12Sep 20, 2021 18:596,361393,776,838153,228,00031,250,00033,759,232