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 29, 2021 16:21Yuriy LyfenkoYuriy LyfenkoScore: 5,726Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 16:215,541456,294,102160,694,233027,455,488
2Sep 29, 2021 16:215,580507,864,668161,823,865027,463,680
3Sep 29, 2021 16:215,596484,491,490162,295,055027,455,488
4Sep 29, 2021 16:215,705358,067,970132,760,00032,694,00033,906,688
5Sep 29, 2021 16:215,717366,579,915129,928,00035,875,00033,415,168
6Sep 29, 2021 16:215,723359,590,176134,973,00030,993,00033,894,400
7Sep 29, 2021 16:215,726367,356,736127,878,00038,172,00033,980,416
8Sep 29, 2021 16:215,727371,774,754141,905,00024,176,00033,652,736
9Sep 29, 2021 16:215,733370,880,897140,110,00026,139,00033,751,040
10Sep 29, 2021 16:215,759375,480,276130,108,00036,896,00034,111,488
11Sep 29, 2021 16:215,759362,007,422136,456,00030,549,00033,468,416
12Sep 29, 2021 16:215,762375,880,066139,071,00028,021,00034,271,232