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 22:39Yuriy LyfenkoYuriy LyfenkoScore: 6,413Success
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 22:395,854470,482,436169,758,516027,451,392
2Sep 21, 2021 22:395,891464,678,698170,845,116027,455,488
3Sep 21, 2021 22:395,904504,362,798171,212,046027,451,392
4Sep 21, 2021 22:396,401388,816,784152,865,00032,756,00033,849,344
5Sep 21, 2021 22:396,402386,967,336155,559,00030,108,00033,972,224
6Sep 21, 2021 22:396,411382,952,516157,317,00028,603,00033,751,040
7Sep 21, 2021 22:396,413397,464,292159,103,00026,861,00033,808,384
8Sep 21, 2021 22:396,420400,158,303154,976,00031,196,00033,751,040
9Sep 21, 2021 22:396,433406,249,929157,005,00029,565,00034,078,720
10Sep 21, 2021 22:396,435398,670,997158,787,00027,839,00034,512,896
11Sep 21, 2021 22:396,447397,529,215157,343,00029,629,00033,456,128
12Sep 21, 2021 22:396,454401,769,063162,842,00024,320,00034,095,104