无聊的劳伦斯在做测评
无聊的劳伦斯在做测评
全部文章
分类
归档
标签
去牛客网
登录
/
注册
无聊的劳伦斯在做测评的博客
全部文章
(共124篇)
题解 | 【模板】位运算Ⅲ ‖ 混合运算
#include <stdio.h> unsigned int Left(unsigned int x, int p) { int num = 1 << 12; num = num - 1; x = x << p; x = num & x; r...
2026-04-13
0
31
题解 | 76选数
#include <stdio.h> int main() { unsigned long long n = 0; scanf("%llu", &n); unsigned long long a = 1; a = a << 63; in...
2026-04-10
0
34
题解 | 二进制不同位数
#include <stdio.h> int main() { int m = 0; int n = 0; scanf("%d %d", &m, &n); int count = 0; m = m ^ n; for (int i =...
2026-04-10
0
42
题解 | 出现奇数次的数
#include <stdio.h> int main() { int n = 0; scanf("%d", &n); int first = 0; scanf("%d", &first); int each = 0; ...
2026-04-10
0
50
题解 | 二进制位中1的数量
#include <stdio.h> int main() { unsigned long long n = 0; scanf("%llu", &n); int count = 0; for (int i = 0;i < 64;i++) { ...
2026-04-10
0
35
题解 | 困难数学题
#include <stdio.h> #define XOR(A) (A)^(A)^(A)^(A) int main() { int x = 0; scanf("%d", &x); printf("%d", XOR(x)); r...
2026-04-10
0
41
题解 | 小苯的xor构造
#include<stdio.h> int main() { int k = 0; scanf("%d", &k); int a = 3; printf("%d %d", k ^ a, a); return 0; }
2026-04-10
0
40
题解 | 【模板】位运算Ⅰ ‖ 整体与、或、异或
#include <stdio.h> #define OUT(A,B) printf("%d %d %d\n",A|B,A&B,A^B) typedef struct List { int num1; int num2; struct List* ne...
2026-04-09
0
31
题解 | 【模板】位运算Ⅱ ‖ 整体位移
#include <stdio.h> //用链表和递归,把简单的问题复杂化 typedef struct List { int cls; int date; int several; struct List* next; struct List* end; }List; in...
2026-04-09
0
40
题解 | 2的n次方计算
#include <stdio.h> int main() { int n = 0; scanf("%d", &n); printf("%d", 1 << n); return 0; }
2026-04-08
0
39
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页