Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 231 Bytes

File metadata and controls

17 lines (9 loc) · 231 Bytes

-30 * 3 + 21 / 5

-90 + 4 = -86

-30 + 3 * 21 / 5

-30 + 63 / 5 = -30 + 12 = -18

30 / 3 * 21 % 5

10 * 21 % 5 = 210 % 5 =0

-30 / 3 * 21 % 4

-10 * 21 % 4 = -210 % 4 = - (210 % 4) = -2

(C++11中规定-m % n = - (m%n))