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 14:19Yuriy LyfenkoYuriy LyfenkoScore: 6,296Success
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 14:196,194467,900,220179,622,542027,459,584
2Sep 22, 2021 14:196,239502,390,683180,917,433027,451,392
3Sep 22, 2021 14:196,253532,977,155181,328,364027,451,392
4Sep 22, 2021 14:196,282384,818,355151,806,00030,361,00033,570,816
5Sep 22, 2021 14:196,291394,964,989144,783,00037,643,00033,718,272
6Sep 22, 2021 14:196,291390,433,181152,198,00030,238,00033,898,496
7Sep 22, 2021 14:196,296381,168,748150,658,00031,927,00034,258,944
8Sep 22, 2021 14:196,305397,274,218156,715,00026,119,00033,996,800
9Sep 22, 2021 14:196,305390,371,406151,699,00031,143,00033,722,368
10Sep 22, 2021 14:196,309386,874,692152,475,00030,495,00033,816,576
11Sep 22, 2021 14:196,344400,469,974151,800,00032,169,00033,882,112
12Sep 22, 2021 14:196,349404,624,545153,595,00030,515,00034,373,632