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 15:05Yuriy LyfenkoYuriy LyfenkoScore: 5,886Success
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 15:055,653462,353,465163,926,378027,459,584
2Sep 22, 2021 15:055,680467,176,934164,707,076027,463,680
3Sep 22, 2021 15:055,703456,646,518165,393,530027,459,584
4Sep 22, 2021 15:055,871370,736,337146,239,00024,024,00033,751,040
5Sep 22, 2021 15:055,871364,182,446145,196,00025,069,00033,701,888
6Sep 22, 2021 15:055,874378,138,021137,657,00032,681,00033,718,272
7Sep 22, 2021 15:055,886361,774,534137,155,00033,548,00034,275,328
8Sep 22, 2021 15:055,888374,667,921142,980,00027,773,00033,832,960
9Sep 22, 2021 15:055,892379,102,263144,828,00026,048,00033,456,128
10Sep 22, 2021 15:055,900387,320,604139,092,00032,021,00033,734,656
11Sep 22, 2021 15:055,918386,033,476152,083,00019,553,00033,714,176
12Sep 22, 2021 15:055,979398,114,487143,465,00029,931,00034,238,464