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 16:22Yuriy LyfenkoYuriy LyfenkoScore: 5,896Success
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 16:225,664517,591,721164,245,984027,443,200
2Sep 22, 2021 16:225,736528,760,580166,337,456027,443,200
3Sep 22, 2021 16:225,760640,402,673167,036,639027,447,296
4Sep 22, 2021 16:225,884374,779,081148,518,00022,119,00033,501,184
5Sep 22, 2021 16:225,888379,129,966141,446,00029,299,00034,058,240
6Sep 22, 2021 16:225,894358,108,314142,611,00028,320,00033,140,736
7Sep 22, 2021 16:225,896357,748,073144,192,00026,778,00034,009,088
8Sep 22, 2021 16:225,897376,827,766140,841,00030,180,00033,751,040
9Sep 22, 2021 16:225,899379,618,338142,570,00028,514,00034,078,720
10Sep 22, 2021 16:225,902377,859,957139,492,00031,657,00034,009,088
11Sep 22, 2021 16:225,917383,611,127144,870,00026,713,00034,013,184
12Sep 22, 2021 16:225,917363,442,273145,749,00025,842,00033,894,400