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:39Yuriy LyfenkoYuriy LyfenkoScore: 5,496Success
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:395,189438,251,372150,476,286027,443,200
2Oct 11, 2021 05:395,242418,270,666152,022,308027,443,200
3Oct 11, 2021 05:395,281443,393,619153,155,758027,426,816
4Oct 11, 2021 05:395,473348,259,979129,583,00029,131,00033,488,896
5Oct 11, 2021 05:395,491367,696,772130,657,00028,581,00033,796,096
6Oct 11, 2021 05:395,495370,490,375131,954,00027,405,00033,468,416
7Oct 11, 2021 05:395,496371,039,203127,694,00031,676,00034,045,952
8Oct 11, 2021 05:395,500350,217,289131,057,00028,446,00033,906,688
9Oct 11, 2021 05:395,500343,398,759124,703,00034,801,00033,894,400
10Oct 11, 2021 05:395,507354,730,994130,385,00029,311,00034,013,184
11Oct 11, 2021 05:395,519368,678,117124,602,00035,463,00034,017,280
12Oct 11, 2021 05:395,540389,055,514127,925,00032,725,00034,357,248