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 06:06Yuriy LyfenkoYuriy LyfenkoScore: 5,314Success
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 06:065,080435,708,087147,309,849027,439,104
2Oct 11, 2021 06:065,132447,554,148148,817,380027,439,104
3Oct 11, 2021 06:065,166446,512,561149,825,208027,373,568
4Oct 11, 2021 06:065,304369,609,349125,303,00028,524,00033,492,992
5Oct 11, 2021 06:065,312352,541,025126,309,00027,726,00033,869,824
6Oct 11, 2021 06:065,312358,294,582126,692,00027,365,00033,566,720
7Oct 11, 2021 06:065,314355,354,875118,468,00035,636,00034,017,280
8Oct 11, 2021 06:065,328347,752,290124,006,00030,509,00034,009,088
9Oct 11, 2021 06:065,332355,335,593126,144,00028,484,00033,759,232
10Oct 11, 2021 06:065,338365,504,585125,274,00029,536,00033,804,288
11Oct 11, 2021 06:065,340369,675,330123,694,00031,175,00033,755,136
12Oct 11, 2021 06:065,351370,325,389125,574,00029,607,00034,308,096