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 listOct 11, 2021 05:54Yuriy LyfenkoYuriy LyfenkoScore: 5,469Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 05:545,112473,110,816148,238,906027,435,008
2Oct 11, 2021 05:545,117491,500,403148,387,530027,443,200
3Oct 11, 2021 05:545,141448,741,132149,096,474027,435,008
4Oct 11, 2021 05:545,436358,817,385128,517,00029,117,00033,370,112
5Oct 11, 2021 05:545,440365,739,947126,804,00030,952,00033,853,440
6Oct 11, 2021 05:545,463344,622,019125,178,00033,250,00034,041,856
7Oct 11, 2021 05:545,469370,511,966126,890,00031,722,00033,894,400
8Oct 11, 2021 05:545,477352,622,788130,322,00028,508,00033,796,096
9Oct 11, 2021 05:545,479356,628,739126,111,00032,769,00034,598,912
10Oct 11, 2021 05:545,492366,172,454143,467,00015,815,00034,058,240
11Oct 11, 2021 05:545,511368,934,514134,411,00025,400,00034,140,160
12Oct 11, 2021 05:545,524388,576,673129,774,00030,415,00036,454,400