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:48Yuriy LyfenkoYuriy LyfenkoScore: 5,374Success
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:485,074443,939,750147,150,017027,439,104
2Oct 11, 2021 05:485,125497,522,102148,632,028027,439,104
3Oct 11, 2021 05:485,146487,727,579149,243,270027,439,104
4Oct 11, 2021 05:485,361363,776,828125,997,00029,467,00034,050,048
5Oct 11, 2021 05:485,370365,614,893120,160,00035,567,00034,025,472
6Oct 11, 2021 05:485,370364,936,825124,198,00031,542,00034,041,856
7Oct 11, 2021 05:485,374358,968,781123,092,00032,758,00033,976,320
8Oct 11, 2021 05:485,380341,830,118120,392,00035,636,00034,054,144
9Oct 11, 2021 05:485,381351,099,415126,474,00029,578,00033,759,232
10Oct 11, 2021 05:485,382363,071,601124,474,00031,612,00033,497,088
11Oct 11, 2021 05:485,389361,430,742127,676,00028,599,00034,287,616
12Oct 11, 2021 05:485,409366,815,415132,320,00024,543,00034,091,008