E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
TIE
Educational Codeforces Round 93 (Rated for Div. 2)
#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#include#includeusingnamespacestd;constintN
Fighting_Peter
·
2020-08-17 19:35
Codeforces
Codeforces Round #664 (Div. 2)
#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#include#include#includeusingnamespacestd;intmain
Fighting_Peter
·
2020-08-17 19:35
Codeforces
Codeforces Round #663 (Div. 2)
位运算OR运算结果只会变大不会变小,直接正序输出就可#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#include#includeusingnamespacestd
Fighting_Peter
·
2020-08-17 19:35
Codeforces
【杭电多校2020】第二场1010.Lead of Wisdom
代码:#includeusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
ACkingdom
·
2020-08-17 19:10
思维
洛谷-P2032 扫描(利用双端队列维护区间最值)
代码:#includeusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
ACkingdom
·
2020-08-17 19:10
双端队列
step1_入门_ACM趣味题 超级楼梯
#include#includeusingnamespacestd;inta[45];intmain(){std::ios::sync_with_stdio(false);std::cin.
tie
(0)
_魔鬼脚印
·
2020-08-17 18:51
2018年为准备CCF
CSP的第二遍刷题
Atcoder 163 (A~E)
include#include#include#include#include#include#definelllonglong#defineIOios::sync_with_stdio(false);cin.
tie
一个积极向上的混子
·
2020-08-17 18:41
Atcoder
Atcoder abc175(A~E)
include#include#include#include#include#include#definelllonglong#defineIOios::sync_with_stdio(false);cin.
tie
一个积极向上的混子
·
2020-08-17 18:18
Atcoder
Educational Codeforces Round 74 (Div. 2)
所以这里只有在差值为1的时候不行代码:#includeusingnamespacestd;typedeflonglongll;intmain(){ios::sync_with_stdio(0);cin.
tie
linbinwu123
·
2020-08-17 17:59
Codeforces
#
状压DP
操作系统基础知识点
.http://blog.csdn.net/nd200642/article/details/38678677.http://blog.sina.com.cn/s/blog_7d8771ed01010
tie
.html
tugangkai
·
2020-08-17 15:43
操作系统
牛客练习赛67 D.牛妹爱数列(dp)
个数全变成1需要的最小翻转次数转移方程看代码,很好理解代码:inta[MAXN];intdp[MAXN][2];intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-17 04:10
DP
牛客练习赛67 B.牛牛爱位运算(位运算)
传送门题意:思路:直接找一下最大值即可代码:intmain(){//std::ios::sync_with_stdio(false),cin.
tie
(0),cout.
tie
(0);intt,n;scanf
_Alexander
·
2020-08-17 04:09
牛客练习赛67 A.牛牛爱字符串(字符串(含空格))
传送门题意:思路:注意几个坑点就可以了输入有空格000000输出00012312输出12312代码:intmain(){std::ios::sync_with_stdio(false),cin.
tie
(
_Alexander
·
2020-08-17 04:09
字符串
Codeforces 1398 C. Good Subarrays(前缀和&&思维)
前面每出现一次,就会有一段区间和为0)代码:intt,n;inta[MAXN];llsum[MAXN];mapp;intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-17 04:01
Codeforces
前缀和&差分
Codeforces 1398 A. Bad Triangle(水题)
:思路:因为是排好序的,只用比较一下a[1]+a[2]和a[n]的大小关系即可代码:inta[MAXN];intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-17 04:04
Codeforces
Codeforces(D. 505)状压DP
一直还当成一个普通二维DP去想状态表示,宛如个智障一样代码:#include#definelllonglong#defineIOSstd::ios::sync_with_stdio(false);cin.
tie
路西 菲尔
·
2020-08-17 02:30
题解
洛谷-炮兵阵地(状压DP)
原题链接代码:#include#definelllonglong#defineIOSstd::ios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);templateinlinevoidread
路西 菲尔
·
2020-08-17 02:30
题解
[PTA]有几个PAT ---- 思维+前缀和
#include#include#include#include#includeusingnamespacestd;#defineIOios_base::sync_with_stdio(0),cin.
tie
WangMeow
·
2020-08-17 01:27
【思维】
【前缀和】
Codeforces Round #591 (Div. 2, based on Technocup 2020 Elimination Round 1) A
codeforces.com/contest/1241/problem/A#includeusingnamespacestd;intmain(){ios_base::sync_with_stdio(false);cin.
tie
king9666
·
2020-08-17 01:34
cf
[2020年百度之星·程序设计大赛-初赛二]Coda的题解集
#includeusingnamespacestd;intt,n,m,p,ans,re;intmain(){ios::sync_with_stdio(0);cin.
tie
(0);cin>>t;while
Coda Limit Exceeded
·
2020-08-16 23:35
12_Elastic Search multi_match语法实现dis_max+
tie
_breaker
12_ElasticSearchmulti_match语法实现dis_max+
tie
_breaker更多干货分布式实战(干货)springcloud实战(干货)mybatis实战(干货)springboot
chenshiying007
·
2020-08-16 20:38
【构建高可用架构】
【大数据】
【ElatisSearch】
344. 反转字符串
示例:输入:s="hello"返回:"olleh"1staticconstauto__=[]()2{3ios::sync_with_stdio(false);4cin.
tie
(nullptr);5returnnullptr
weixin_30321709
·
2020-08-16 05:31
【队伍训练3】Codeforces Round #661 (Div. 3)
A签到#include#defineiosios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);usingnamespacestd;inta[105];intmain
zha_zha_wei
·
2020-08-16 01:50
c
c++
2020年7月8日日记
题目:需要用到到的技术:数据挖掘、爬虫、数据分析等1.用到的一些网站:https://github.com/huang-
tie
/Python(python基础,包括一些函数迭代器的讲解)2.python
optisystem15
·
2020-08-15 21:33
日记
给cin/cout提速
#include2.usingnamespacestd;2.intmain()3.{4.ios::sync_with_stdio(false);5.cin.
tie
(0);6.
yeatcsdn
·
2020-08-15 17:53
编程题解析
C++ 加速cin和cout
在代码的第一行之前加上这样一句#defineIOSios_base::sync_with_stdio(0);cin.
tie
(0);然后在main()函数中使用cin和cout前先调用一次IOS即可实现加速效果
weixin_30666753
·
2020-08-15 16:34
Codeforces Round #630 (Div. 2) A~D【思维,数论,字符串,位运算】
qwq#include#include#include#include#include#include#include#defineIOSstd::ios::sync_with_stdio(0);cin.
tie
黑夜和白天
·
2020-08-15 12:40
我在cf刷题之路
Note1
map、set、vecotr、deque·vector·deque·map·set输入输出优化关闭输入输出流同步(调试时注释掉)#defineIOSios::sync_with_stdio(0);cin.
tie
沉欢沉欢
·
2020-08-15 12:51
My
Notes
Codeforces 1395 C. Boboniu and Bit Operations(位运算&&枚举答案)
ci=ai&bj,那就看一下对于每一个ai是否都能找到bj(ci=ai&bj)满足ans&ci=ci代码:intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-15 12:40
位运算
枚举答案
Codeforces
Codeforces 1395 B. Boboniu Plays Chess(构造)
然后蛇形遍历一下就好(已经遍历过的跳过去)代码:structsa{intx,y;}p[MAXN];map>mp;intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-15 12:09
Codeforces
构造
Codeforces 1395 A. Boboniu Likes to Color Balls(奇偶)
蓝各一个可以变成一个白色的问最终能否构成回文串显然要想构造回文串,四个数里面奇数的个数要么为0要么为1那就看能否把四个数变成这样的即可,讨论一下代码:intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-15 12:09
Codeforces
思维题
Codeforces Round #661 (Div. 3) Coda的题解集
#includeusingnamespacestd;intcas,n,a[55];intmain(){ios::sync_with_stdio(0);cin.
tie
(0);cin>>cas;while(
Coda Limit Exceeded
·
2020-08-15 10:19
洛谷-P2181 对角线(思维,数学)
题目链接思路:在经过一些排列组合的技巧,就可以得出代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0
ACkingdom
·
2020-08-15 10:12
思维
组合数学
洛谷-P2669 金币
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=2e6
ACkingdom
·
2020-08-15 10:12
思维
【杭电多校2020】1009.Increasing and Decreasing
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=2e6
ACkingdom
·
2020-08-15 10:11
构造
思维
Codeforces 1395 D. Boboniu Chats with Du(贪心&&枚举答案)
llsum[MAXN];llsum2[MAXN];intcmp(inta,intb){returna>b;}intmain(){std::ios::sync_with_stdio(false),cin.
tie
_Alexander
·
2020-08-15 10:34
Codeforces
贪心
枚举答案
蓝桥杯训练——[蓝桥杯][2019年第十届真题]后缀表达式
include#include#include#include#include#include#include#include#defineIOSios::sync_with_stdio(false),cin.
tie
搬砖的小孩有肉吃
·
2020-08-15 10:38
蓝桥杯
Educational Codeforces Round 92 (Rated for Div. 2) B. Array Walk(贪心)
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=1e5
ACkingdom
·
2020-08-15 10:06
思维
C++加速读取和其他加速
标题输入函数对比模板:std::ios::sync_with_stdio(false);//关闭同步后据说不能和C的输入输出混用,出玄学问题std::cin.
tie
(0);cout#includeusingnamespacestd
sstealer_
·
2020-08-15 07:38
ACM
POJ-2559 单调栈
make_pair(i,j)usingnamespacestd;typedeflonglongll;stack>sta;lln,a;intmain(){ios::sync_with_stdio(false);cin.
tie
DATELOST
·
2020-08-14 05:52
poj
ACM_数据结构
leetCode刷题---贪心算法【2020第一版】
#诗经·秦风·驷驖驷驖(
tie
3)孔阜(fu4),六辔(pei4)在手。公之媚子,从公于狩。奉时辰牡,辰牡孔硕。公曰左之,舍拔则获。游于北园,四马既闲。
子颠三号倒四
·
2020-08-13 22:37
算法刷题
2020牛客暑期多校训练营(第二场)DFCB补题报告
#include#includeusingnamespacestd;intmain(){ios::sync_with_stdio(0);cin.
tie
(0);cout.
tie
(0);inta,b,c;intx
爱吃辣酱
·
2020-08-13 22:13
【队伍训练】Codeforces Round #660 (Div. 2)
inline,unroll-all-loops,-ffast-math")#includeusingnamespacestd;#definejsios::sync_with_stdio(false);cin.
tie
zha_zha_wei
·
2020-08-13 18:49
c
c++
gcd
初识贪心——调度问题
,有的节目时间冲突,问能完整看完的电视节目最多是多少Input输入数据包含多个测试实例,每个测试实例第一行只有一个整数n(n#definefioios::sync_with_stdio(0);cin.
tie
你脸上有BUG
·
2020-08-13 16:28
Millionaire(2008 APAC local onsite C)
/freopen("input.txt","r",stdin);//freopen("output.txt","w",stdout);ios_base::sync_with_stdio(0);cin.
tie
Accepted丶
·
2020-08-13 16:14
————DP————
【图论】点分治
i=a;i--)#defineendl'\n'#definemem(a,b)memset(a,b,sizeof(a))#defineIOios::sync_with_stdio(false);cin.
tie
Anonytt
·
2020-08-13 12:12
图论
暴力枚举类型题小结
A.P2241统计方形(数据加强版)#include#defineFASTios_base::sync_with_stdio(false),cin.
tie
(0),cout.
tie
(0);#definems
Cyber苦行者
·
2020-08-13 11:22
暴力枚举
Codeforces Round #644 (Div. 3)-H. Binary Median(二进制)
按字典序排序),从0到2m-1,我们删除其中n(nusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
ACkingdom
·
2020-08-13 11:16
二进制
思维
视频聊天系统源码读取加速大法
2.cin和cout,取消同步的话,可以达到和scanf和printf相同速度,具体代码如下:ios::sync_with_stdio(false);cin.
tie
(NULL);3.如果还是tl,很有可能是算法的问题
云豹网络科技
·
2020-08-12 16:33
技术类
算法
printf
程序设计
jquery
hadoop
HDU - 6409 没有兄弟的舞会 ( STL
考虑对每个节点维护一个set标记然后就是维护最大最小值xjb搞搞#includeusingnamespacestd;#definecpp_io(){ios::sync_with_stdio(false);cin.
tie
Yishui_Blog
·
2020-08-11 13:47
online
judge
HDU
其他
贪心
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他