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 21, 2021 16:15Yuriy LyfenkoYuriy LyfenkoScore: 6,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 16:156,203965,388,472179,884,775027,459,584
2Sep 21, 2021 16:156,208974,033,933180,020,955027,340,800
3Sep 21, 2021 16:156,221934,744,386180,415,524027,451,392
4Sep 21, 2021 16:156,592880,535,454165,323,00025,831,00033,611,776
5Sep 21, 2021 16:156,609889,619,482156,633,00035,023,00033,615,872
6Sep 21, 2021 16:156,611896,881,066161,447,00030,271,00034,054,144
7Sep 21, 2021 16:156,614905,335,508164,996,00026,811,00033,984,512
8Sep 21, 2021 16:156,619904,157,846159,789,00032,158,00033,607,680
9Sep 21, 2021 16:156,628877,285,337167,277,00024,935,00033,890,304
10Sep 21, 2021 16:156,634908,894,633165,487,00026,891,00033,587,200
11Sep 21, 2021 16:156,637901,326,491166,598,00025,869,00034,312,192
12Sep 21, 2021 16:156,694913,873,314166,087,00028,027,00034,430,976