数位dp模板题 #include <bits/stdc++.h> #define inf 2333333333333333 #define N 1000010 #define p(a) putchar(a) #define For(i,a,b) for(int i=a;i<=b;++i) //by ...
Reverse Bits (E) 题目 Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 001110010111100000101 ...
分类:
其他好文 时间:
2020-07-13 09:14:55
阅读次数:
56
#T1 搜索 和以前做过一道关于排序的题有亿点点像,看到这么小的数据范围竟然脑抽没去想搜索.... #T2 筛法 换个方向思考,我们考虑这个数是几个数的倍数 #include <bits/stdc++.h> using namespace std; const int maxn = 1000000+ ...
分类:
其他好文 时间:
2020-07-12 22:15:34
阅读次数:
66
https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ff08?scoreboard_type=China A.当前数比前面所有和后面一个都大的时候,算做破纪录一次。遍历一遍。 #include <bits/std ...
分类:
其他好文 时间:
2020-07-12 16:25:30
阅读次数:
65
unrated 呜呜呜 #A 直接全输出1完事 #include <bits/stdc++.h> #define all(n) (n).begin(), (n).end() #define se second #define fi first #define pb push_back #define ...
分类:
其他好文 时间:
2020-07-12 12:42:52
阅读次数:
57
参考链接: 倒排索引:https://www.cnblogs.com/meibaorui/p/reverse_index.html bool检索:https://www.cnblogs.com/meibaorui/p/boolean_search.html ...
分类:
其他好文 时间:
2020-07-11 23:16:15
阅读次数:
96
Gnirehtet 该项目通过 adb 为 Android 设备提供 reverse tethering(反向网络连接),允许设备在插入计算机后,使用计算机的互联网连接 github地址:Genymobile/gnirehtet: Gnirehtet provides reverse tetheri ...
分类:
移动开发 时间:
2020-07-11 21:21:56
阅读次数:
208
#pragma GCC optimize(2) #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e5 + 100; const int maxm = 1e6 + 100; co ...
分类:
其他好文 时间:
2020-07-11 21:14:46
阅读次数:
65
双链表一个节点里面有两个指针,一个指向左边,一个指向右边 不定义头结点和尾结点了 令下标是0的点表示head 令下标是1的点表示tail 邻接表的知识:把每个点的所有邻边全部存下来 邻接表就是n个单链表 head[i]存储第i个点的邻边 1 #include <bits/stdc++.h> 2 us ...
分类:
其他好文 时间:
2020-07-11 19:14:03
阅读次数:
46
题目链接 https://leetcode-cn.com/problems/reverse-linked-list/description/ 题目分析 要求:反转一个单向链表 代码模板里的ListNode给了3个构造函数,明显是方便我们构造结点用的(如果要new,最好要delete) 可以迭代实现, ...
分类:
其他好文 时间:
2020-07-11 17:17:33
阅读次数:
55