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:27Yuriy LyfenkoYuriy LyfenkoScore: 5,747Success
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:275,479461,846,011158,894,548027,447,296
2Sep 22, 2021 16:275,529449,543,610160,332,001027,447,296
3Sep 22, 2021 16:275,546510,022,858160,839,754027,451,392
4Sep 22, 2021 16:275,733378,076,455138,547,00027,709,00034,058,240
5Sep 22, 2021 16:275,739352,376,222130,830,00035,593,00033,538,048
6Sep 22, 2021 16:275,743358,703,419138,284,00028,262,00033,591,296
7Sep 22, 2021 16:275,747380,933,033138,030,00028,628,00033,746,944
8Sep 22, 2021 16:275,758384,619,193136,988,00029,997,00033,751,040
9Sep 22, 2021 16:275,767376,817,075136,202,00031,046,00033,869,824
10Sep 22, 2021 16:275,771371,026,640143,904,00023,451,00034,418,688
11Sep 22, 2021 16:275,773376,781,094135,332,00032,078,00033,746,944
12Sep 22, 2021 16:275,774368,036,546140,746,00026,711,00033,828,864