码迷,mamicode.com
首页 >  
搜索关键字:reverse bits    ( 8842个结果
redis 》List存储结构
redis的List存储结构:一个链表加上压缩列表实现的 redis c语言源码双向循环列表# define QL_FILL_BITS 16# define QL_COMP_BITS 16# define QL_BM_BITS 4 /typedef struct quicklist { quickl ...
分类:其他好文   时间:2021-06-02 18:11:23    阅读次数:0
dik
#include<bits/stdc++.h> using namespace std; const int N = 200000,Inf=0x7fffff; struct edge{ int u,v,w; edge(int a,int b,int c){ u=a,v=b,w=c; } }; vec ...
分类:其他好文   时间:2021-06-02 17:40:23    阅读次数:0
dd爱框框
dd爱框框 一道思维题,画过转换图之后会发现最多会出现四种矩阵,那么只需要判断最后是哪一种就好了。 同时对于连续的直接去重,因为两个连续相同的等于不操作。 #include <bits/stdc++.h> using namespace std; const int N = 1010; int a[ ...
分类:其他好文   时间:2021-06-02 16:40:21    阅读次数:0
CF 580E Kefa and Watch
#include<bits/stdc++.h> #define ull unsigned long long using namespace std; const int N=1000011; const ull St=233,M1=1000000007,M2=1000000009; int n,m ...
分类:其他好文   时间:2021-06-02 16:00:05    阅读次数:0
题解:砝码称重
##题目: (注:T1) ##想法 这道题是一个方案背包的类似板子的题,但是我并没有第一遍切,为什么呢?因为我在一个循环里把num[]数组写成了a[]数组,结果样例太水了被我过了,后来发现才9分,回头检查才发现数组写错了。太智障了,下次要认真点 ##代码: #include<bits/stdc++. ...
分类:其他好文   时间:2021-06-02 13:32:00    阅读次数:0
CF1509C The Sports Festival
原题链接 题意:每次加一个数,要求最小 $\sum max_ - min_, 题解:本来以为就是纯贪心,然后发现竟然是区间dp,就是先排完序,然后就加入然后取 \(min\)。 代码: #include <iostream> #include <bits/stdc++.h> using namesp ...
分类:其他好文   时间:2021-06-02 13:04:14    阅读次数:0
数字分隔符,三位一个逗号
let num = 12345678.002345 let start = (num + '').split('.')[0].split('').reverse() let end = (num + '').split('.')[1] let s = '',cur = '',n = start.le ...
分类:其他好文   时间:2021-06-02 12:21:53    阅读次数:0
1000F.One Ocurrence(可持久化线段树+思维)
这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:其他好文   时间:2021-06-02 12:02:18    阅读次数:0
Georgia and Bob POJ - 1704
原题链接 考察:博弈论 思路: 看了大佬题解才发现是阶梯博弈,这里讲一下为什么是阶梯博弈. 以第二个样例: 1 5 6 7 9 12 14 17 我们计算出每个人可以移动的距离数组b:0 3 0 0 1 2 1 2 假设我们把第二个人往左移动2格,该数列变成:0 1 2 0 1 2 1 2 有没有发 ...
分类:其他好文   时间:2021-06-02 11:09:23    阅读次数:0
最小费用最大流
#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:其他好文   时间:2021-05-25 17:42:56    阅读次数:0
8842条   上一页 1 2 3 4 5 6 ... 885 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!