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 22, 2021 04:05Yuriy LyfenkoYuriy LyfenkoScore: 6,294Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 04:055,775504,338,644167,485,566027,463,680
2Sep 22, 2021 04:055,801505,015,983168,228,058027,471,872
3Sep 22, 2021 04:055,882590,885,503170,571,428027,451,392
4Sep 22, 2021 04:056,280394,952,332149,278,00032,841,00034,013,184
5Sep 22, 2021 04:056,290391,861,334150,514,00031,897,00033,898,496
6Sep 22, 2021 04:056,294381,922,142151,436,00031,089,00033,906,688
7Sep 22, 2021 04:056,294399,928,914151,437,00031,089,00034,701,312
8Sep 22, 2021 04:056,295389,592,214154,161,00028,398,00033,751,040
9Sep 22, 2021 04:056,301392,433,034155,010,00027,717,00033,980,416
10Sep 22, 2021 04:056,319394,772,314153,734,00029,525,00033,976,320
11Sep 22, 2021 04:056,331406,130,687154,195,00029,418,00034,336,768
12Sep 22, 2021 04:056,345390,166,311157,860,00026,135,00034,013,184