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 03:34Yuriy LyfenkoYuriy LyfenkoScore: 5,684Success
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 03:345,459962,664,512158,311,824027,447,296
2Oct 11, 2021 03:345,4661,005,154,183158,506,470027,443,200
3Oct 11, 2021 03:345,478952,511,726158,875,407027,443,200
4Oct 11, 2021 03:345,675875,229,780135,466,00029,100,00033,402,880
5Oct 11, 2021 03:345,683876,734,673135,476,00029,319,00034,004,992
6Oct 11, 2021 03:345,683862,511,618141,562,00023,241,00033,755,136
7Oct 11, 2021 03:345,684875,108,097140,542,00024,304,00033,488,896
8Oct 11, 2021 03:345,690876,908,204133,001,00032,000,00034,185,216
9Oct 11, 2021 03:345,696879,855,361133,953,00031,222,00034,045,952
10Oct 11, 2021 03:345,699865,199,724138,412,00026,856,00034,009,088
11Oct 11, 2021 03:345,708887,226,909125,315,00040,213,00034,426,880
12Oct 11, 2021 03:345,746862,429,088142,070,00024,568,00033,886,208