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:20Yuriy LyfenkoYuriy LyfenkoScore: 5,384Success
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:205,071437,405,705147,062,138027,439,104
2Oct 11, 2021 06:205,117427,221,003148,389,200027,435,008
3Oct 11, 2021 06:205,180533,477,613150,215,085027,439,104
4Oct 11, 2021 06:205,381353,145,600129,169,00026,867,00033,554,432
5Oct 11, 2021 06:205,381370,703,280130,221,00025,837,00034,058,240
6Oct 11, 2021 06:205,384364,955,290124,522,00031,624,00033,796,096
7Oct 11, 2021 06:205,384370,850,219119,746,00036,402,00034,017,280
8Oct 11, 2021 06:205,388360,958,472127,658,00028,595,00033,746,944
9Oct 11, 2021 06:205,390356,300,752124,651,00031,657,00033,882,112
10Oct 11, 2021 06:205,397360,030,878123,260,00033,260,00033,783,808
11Oct 11, 2021 06:205,412368,628,706133,458,00023,488,00033,710,080
12Oct 11, 2021 06:205,430366,722,446132,271,00025,194,00034,025,472