Home > Back-end >  Online waiting for, c
Online waiting for, c

Time:09-25

How to quickly put the negative number converted to an integer in c + +?
How to quickly find out the two vectors in the logarithm of the same element?

CodePudding user response:

1, use the minus sign (-) can
2, set_intersection

CodePudding user response:

How is negative in the array mixed make

CodePudding user response:

Abs () using the absolute value function

CodePudding user response:

With the abs ()

CodePudding user response:

You mean integer? Directly converted to int, depends on your rounding strategy, can judge for yourself a little bit, is rounded, truncate or rounding to 0 (inert rounding),