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 13:47Yuriy LyfenkoYuriy LyfenkoScore: 6,209Success
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 13:475,904492,208,717171,224,074027,455,488
2Sep 22, 2021 13:475,957468,448,326172,755,811027,459,584
3Sep 22, 2021 13:475,958515,559,787172,783,458027,455,488
4Sep 22, 2021 13:476,191372,955,240147,610,00031,915,00033,460,224
5Sep 22, 2021 13:476,206380,404,007148,152,00031,817,00033,669,120
6Sep 22, 2021 13:476,207393,847,010144,197,00035,807,00033,714,176
7Sep 22, 2021 13:476,209369,161,059140,790,00039,268,00033,718,272
8Sep 22, 2021 13:476,229392,710,577144,711,00035,935,00034,168,832
9Sep 22, 2021 13:476,232392,630,016157,486,00023,253,00033,677,312
10Sep 22, 2021 13:476,243381,357,407156,688,00024,350,00034,242,560
11Sep 22, 2021 13:476,248373,048,635147,530,00033,664,00033,636,352
12Sep 22, 2021 13:476,265403,881,573143,446,00038,252,00035,209,216