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 17:55Ilya AniskovetsIlya AniskovetsScore: 6,844Success
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 17:556,800488,731,519197,195,533027,459,584
2Sep 20, 2021 17:556,803464,083,845197,290,163027,451,392
3Sep 20, 2021 17:556,814392,639,462168,212,00029,386,00033,423,360
4Sep 20, 2021 17:556,821386,480,103165,003,00032,801,00033,665,024
5Sep 20, 2021 17:556,826409,991,222166,815,00031,152,00033,837,056
6Sep 20, 2021 17:556,833399,793,436172,496,00025,669,00034,013,184
7Sep 20, 2021 17:556,844495,511,498198,473,830027,451,392
8Sep 20, 2021 17:556,846410,290,017167,601,00030,926,00033,693,696
9Sep 20, 2021 17:556,853399,387,771166,778,00031,957,00033,386,496
10Sep 20, 2021 17:556,855414,530,839165,983,00032,799,00033,980,416
11Sep 20, 2021 17:556,855405,472,847166,839,00031,969,00033,800,192
12Sep 20, 2021 17:556,859395,857,866170,355,00028,562,00033,574,912