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:57Ilya AniskovetsIlya AniskovetsScore: 6,320Success
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:576,284522,870,834182,223,727027,451,392
2Sep 20, 2021 18:576,299400,853,343155,128,00027,555,00033,632,256
3Sep 20, 2021 18:576,302389,779,056149,806,00032,957,00033,976,320
4Sep 20, 2021 18:576,306368,761,769151,722,00031,148,00033,808,384
5Sep 20, 2021 18:576,311404,550,007155,253,00027,760,00034,357,248
6Sep 20, 2021 18:576,318483,371,359183,224,735027,451,392
7Sep 20, 2021 18:576,320528,195,884183,268,937027,660,288
8Sep 20, 2021 18:576,323376,909,684157,480,00025,901,00033,308,672
9Sep 20, 2021 18:576,327399,647,486159,231,00024,253,00034,091,008
10Sep 20, 2021 18:576,332394,394,653154,056,00029,586,00033,832,960
11Sep 20, 2021 18:576,338369,635,791156,081,00027,724,00034,353,152
12Sep 20, 2021 18:576,352380,148,316153,849,00030,365,00033,574,912