
番外算法/GDCPC
文章平均质量分 76
公仔面i
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
位运算的简单知识
位运算的简单知识位运算中,需要记住的几个点为:想要去最后一位,用num % 2 .要去除最后一位,则用 num = num / 2如果判断一个数是2的幂次方,用(n & -n) == n ,下面会详细说明两个相同的数异或为0,全部位与0 异或 值不变,全部位与1 异或 相当于取反.231. 2 的幂题意:给你一个整数 n,请你判断该整数是否是 2 的幂次方。如果是,返回 true ;否则,返回 false 。如果存在一个整数 x 使得 n == 2x ,则认为 n 是 2原创 2021-08-05 13:39:28 · 174 阅读 · 0 评论 -
GPCPC_01_An_Easy_Problem
题目描述Measuring the area of a certain shape is an important part of certain geometric problems.For a point A(x,y) on the plane, we define the F(x,y) as ∣x∣∗∣y∣,which means the area of the rectangle with the vertex(x,0),(0,y),(0,0),(x,y).You are given n∗m原创 2021-06-27 22:10:19 · 330 阅读 · 2 评论