码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
HDU5919 H - Sequence II (可持久化线段树)
problem: 给你n个数字,和m个查询. 将[l,r]之间数第一次出现的位置信息弄成一个新的数组,然后找出其中k/2大的数.(k为位置的数量) #include<bits/stdc++.h> using namespace std; const int maxn=2e5+100; const i ...
分类:其他好文   时间:2020-11-26 14:12:20    阅读次数:3
11.14 补题
7-1 阅览室,感觉思路还好,但是写的太繁琐了,借鉴一下过的代码,又写了一遍;,代码: #include<bits/stdc++.h> using namespace std; int s[1010],w[1010]; int main() { int n; cin>>n; while(n--) { ...
分类:其他好文   时间:2020-11-26 14:11:33    阅读次数:3
Codeforces 1439B. Graph Subset Problem (思维,复杂度分析)
#include<bits/stdc++.h> #define ll long long #define N 100015 #define rep(i,a,n) for (int i=a;i<=n;i++) #define per(i,a,n) for (int i=n;i>=a;i--) #def ...
分类:其他好文   时间:2020-11-25 12:45:31    阅读次数:4
如何直接跳出多重循环
珠心算p2141灵感: #include<bits/stdc++.h> using namespace std; int s[101]; int x=0; int main(){ int t=0; int n; cin>>n; for(int i=0;i<n;i++){ cin>>s[i]; } f ...
分类:其他好文   时间:2020-11-25 12:25:50    阅读次数:4
板子-__int128
__int128 是比 long long 还要大的数据类型(\(max = 2^{128}-1\)) 其输入和输出不能用常规方法,用 read() 和 write() 函数代替 #include<bits/stdc++.h> using namespace std; __int128 read(i ...
分类:其他好文   时间:2020-11-24 12:37:39    阅读次数:6
Codeforces Round #677 (Div. 3)
写在前面 最近开始刷CF,今天第一次补完完整的一套CF,总结一下吧,发现做过的题不赶紧总结写题解就容易忘了。 立个flag 争取每天更新一篇CF题解 A. Boring Apartments 模拟题,模拟就完了 #include<bits/stdc++.h> using namespace std; ...
分类:其他好文   时间:2020-11-21 12:44:54    阅读次数:33
Codeforces Round #684 (Div. 2)【ABC1C2】
比赛链接:https://codeforces.com/contest/1440 A. Buy the String 题解 枚举字符串中 $0$ 或 $1$ 的个数即可。 代码 #include <bits/stdc++.h> using namespace std; int main() { io ...
分类:其他好文   时间:2020-11-21 12:41:54    阅读次数:32
P3899 [湖南集训]谈笑风生
###P3899 [湖南集训]谈笑风生 二维数点问题,主席树模板(两种写法 #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back using namespace std; const i ...
分类:其他好文   时间:2020-11-21 12:15:18    阅读次数:7
[2020.11.15]CCPC Final 2019
cf gym 链接 A. Kick Start 简单签到题。 code: #include<bits/stdc++.h> #define pi pair<int,int> #define f first #define s second using namespace std; const stri ...
分类:其他好文   时间:2020-11-21 11:48:03    阅读次数:4
QFNU-ACM 2020.11.6 Trating
A 输入,第i个人把礼物给了谁,输出,第i个人的礼物是谁给的 #include<bits/stdc++.h> using namespace std; typedef long long ll; #define ture true int main() { int n,flag=0,a[200],b ...
分类:其他好文   时间:2020-11-20 11:48:21    阅读次数:6
3873条   上一页 1 ... 17 18 19 20 21 ... 388 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!