不会的东西
狠人王
怀着一颗热情的心,追随自己的梦想!
展开
-
A. XOR Equation
Twopositiveintegersaandbhave a sum ofsand a bitwise XOR ofx. How many possible values are there for the ordered pair(a, b)?InputThe first line of the input contains two integerssandx...原创 2019-09-13 10:47:02 · 234 阅读 · 0 评论 -
B. The Number of Products(技巧模拟)(思路题)(实现)
You are given a sequencea1,a2,…,ana1,a2,…,anconsisting ofnnnon-zero integers (i.e.ai≠0ai≠0).You have to calculate two following values:the number of pairs of indices(l,r)(l,r)(l≤r)(l≤r)suc...原创 2019-09-19 15:43:45 · 514 阅读 · 0 评论