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 29, 2021 13:33Yuriy LyfenkoYuriy LyfenkoScore: 5,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 13:335,495452,541,771159,365,684027,459,584
2Sep 29, 2021 13:335,500428,565,098159,501,498027,455,488
3Sep 29, 2021 13:335,538459,913,508160,608,064027,459,584
4Sep 29, 2021 13:335,548348,294,225133,225,00027,669,00033,898,496
5Sep 29, 2021 13:335,549376,660,267132,211,00028,696,00034,197,504
6Sep 29, 2021 13:335,552376,274,293134,882,00026,139,00033,906,688
7Sep 29, 2021 13:335,557352,602,924136,189,00024,950,00033,648,640
8Sep 29, 2021 13:335,563372,050,335130,069,00031,257,00033,906,688
9Sep 29, 2021 13:335,570372,477,612132,080,00029,464,00033,640,448
10Sep 29, 2021 13:335,571369,699,852134,631,00026,926,00033,751,040
11Sep 29, 2021 13:335,577356,182,777129,786,00031,947,00033,767,424
12Sep 29, 2021 13:335,578373,037,811136,545,00025,208,00033,849,344