比赛链接
牛客练习赛130
A题
思路
如果 x x x和 y y y相等,一步都不需要。
将 x x x和 y y y进行二进制拆位,如果同时出现 x x x的二进制位等于 1 1 1并且 y y y的二进制位等于 0 0 0和 x x x的二进制位等于 0 0 0并且 y y y的二进制位等于 1 1 1&a…
Exercise 2.49 Use s e g m e n t s − > p a i n t e r segments->painter segments−>painter to define the following primitive painters: a. The painter that draws the outline of the designated frame. b. The painter that draws an “X” by connecting …