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 17:29Yuriy LyfenkoYuriy LyfenkoScore: 5,702Success
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 17:295,567471,577,049161,446,664027,443,200
2Sep 22, 2021 17:295,570457,286,988161,520,069027,443,200
3Sep 22, 2021 17:295,570436,786,512161,526,491027,447,296
4Sep 22, 2021 17:295,681372,129,955140,762,00023,981,00033,800,192
5Sep 22, 2021 17:295,699370,755,568137,056,00028,217,00034,045,952
6Sep 22, 2021 17:295,701380,633,720127,319,00038,005,00034,091,008
7Sep 22, 2021 17:295,702355,989,916142,178,00023,169,00033,775,616
8Sep 22, 2021 17:295,711365,317,039134,506,00031,117,00033,878,016
9Sep 22, 2021 17:295,717381,317,827133,025,00032,760,00033,861,632
10Sep 22, 2021 17:295,722366,163,270135,593,00030,356,00034,140,160
11Sep 22, 2021 17:295,745384,094,325141,468,00025,149,00034,013,184
12Sep 22, 2021 17:295,785368,051,355139,627,00028,133,00033,841,152