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 03:28Yuriy LyfenkoYuriy LyfenkoScore: 6,542Success
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 03:286,215490,391,406180,233,103027,447,296
2Sep 22, 2021 03:286,227467,772,913180,570,487027,439,104
3Sep 22, 2021 03:286,253533,524,989181,322,946027,443,200
4Sep 22, 2021 03:286,526394,599,446158,214,00031,042,00033,484,800
5Sep 22, 2021 03:286,532399,808,517161,221,00028,213,00033,759,232
6Sep 22, 2021 03:286,540378,396,741165,681,00023,966,00033,763,328
7Sep 22, 2021 03:286,542402,125,799157,448,00032,271,00033,755,136
8Sep 22, 2021 03:286,552374,200,421158,183,00031,835,00033,857,536
9Sep 22, 2021 03:286,559379,717,187167,213,00022,991,00033,796,096
10Sep 22, 2021 03:286,567385,111,536164,703,00025,734,00033,492,992
11Sep 22, 2021 03:286,574388,044,233158,716,00031,943,00034,054,144
12Sep 22, 2021 03:286,613409,888,836171,419,00020,356,00034,353,152