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
浅谈Floyd解决最短路问题
粘题大佬告诉我说这是一道裸的不能再裸的最短路题,但我还是挂了好几次(咸鱼没跑了)先粘上我开始的错误代码再慢慢说#includeusingnamespacestd;intmain(){ios::sync_with_stdio(0);cin.
tie
驼君
·
2020-08-10 20:42
算法
过河卒(不明白的错误)(现已明白)
#includeusingnamespacestd;typedeflonglongll;intmain(){ios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
键盘奇侠
·
2020-08-10 20:01
不明白的错误
P3369 【模板】普通平衡树 STL版
#include#include#include#includeusingnamespacestd;vectorv;intmain(){ios::sync_with_stdio(false);cin.
tie
_sophon
·
2020-08-10 20:46
板
C++程序细节优化总结
一、时间复杂度常数优化(一)输入、输出优化cin加速:关闭标准输入流的同步ios::sync_with_stdio(false);解除cin与cout的绑定cin.
tie
(0);利用getchar()&
C20193620
·
2020-08-10 19:50
综合
H. Binary Median(思维,二进制)
definelsp#defineullunsignedlonglong#defineall(x)x.begin(),x.end()#defineIOSios::sync_with_stdio(false);cin.
tie
Joker_He
·
2020-08-10 14:05
数学
贪心
构造等思维问题
洛谷-P2240 【深基12.例1】部分背包问题
代码:#includeusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
ACkingdom
·
2020-08-10 13:00
贪心
AIsing Programming Contest 2020 总结
A-NumberofMultiples按照题目意思走就行#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#include#includeusingnamespacestd
Fighting_Peter
·
2020-08-10 08:51
AtCoder
Codeforces Round #654 (Div. 2)
A.MagicalSticks贪心凑长度为nnn的木棒#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#include#includeusingnamespacestd
Fighting_Peter
·
2020-08-10 08:51
Codeforces
Codeforces Round #661 (Div. 3)
A-RemoveSmallest排个序,如果相邻的数大于一就不满足题意#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#definedebug
Fighting_Peter
·
2020-08-10 08:19
Codeforces
数据结构
算法
c++
AtCoder Beginner Contest 174 总结
-A-AirConditioner签到题1#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#definedebug(x)cout#includeusingnamespacestd
Fighting_Peter
·
2020-08-10 08:18
AtCoder
数据结构
算法
c++
Codeforces Round #659 (Div. 2)
日常爆零掉分waA.CommonPrefixes根据前一个字符串构造后一个字符串,从哪不同就从哪换#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
Fighting_Peter
·
2020-08-10 08:18
Codeforces
M-SOLUTIONS Programming Contest 2020总结
A-KyuinAtCoder直接模拟#defineIOios::sync_with_stdio(false);cin.
tie
();cout.
tie
(0)#definedebug(x)cout#includeusingnamespacestd
Fighting_Peter
·
2020-08-10 08:18
AtCoder
牛客编程巅峰赛S1第4场 - 黄金&钻石 ABC
definels(ob)swap(a,b);for(inti=a;i>=1;i--)if(a/i+b/i>=n)returni;}intmain(){ios::sync_with_stdio(false);cin.
tie
夕林山寸
·
2020-08-10 06:02
网络赛
面试算法题
React - the
tie
breaker
原文https://www.airpair.com/angularjs/posts/angular-vs-react-the-
tie
-breaker1.IntroductionAshortwhileago
offbye
·
2020-08-09 22:33
前端开发
Educational Codeforces Round 88 (Rated for Div. 2)(A/B思维 C数学 D单调栈+ST表 E(数论,关于mod于因数的关系)F(咕咕咕))
include#include#include#include#include#defineinf0x3f3f3f3f#defineIOSios_base::sync_with_stdio(0);cin.
tie
nagisa-kun
·
2020-08-09 22:03
cf
Lyft Level 5 Challenge 2018 - Elimination Round D
t;constLLmod=998244353;constintmaxn=1e5+5;mapmp,vis;LLa[maxn];intmain(){ios::sync_with_stdio(0);cin.
tie
yqdjl6
·
2020-08-09 16:16
codeforces
A. Elections
对手得票总和分析一个个往后枚举即可代码#includeusingnamespacestd;#definelllonglongintmain(){ios::sync_with_stdio(false);cin.
tie
weixin_30273931
·
2020-08-09 13:20
E. Divisibility by 25 (暴力)
题意:给你一个整数n(1#definepiacos(-1)#definefastcinios_base::sync_with_stdio(false);cin.
tie
(NULL);cout.
tie
(NULL
凝望_XXW
·
2020-08-09 11:36
ACM
思维优化
暴力
Codeforces Round #662 (Div. 2) B. Applejack and Storages(思维)
代码:#include//#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN
ACkingdom
·
2020-08-09 04:39
思维
Codeforces Round #661 (Div. 3) B.Gifts FixingFixing
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=2e5
ACkingdom
·
2020-08-09 04:39
思维
Codeforces Round #662 (Div. 2) A - Rainbow Dash, Fluttershy and Chess Coloring
代码:#include//#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN
ACkingdom
·
2020-08-09 04:39
思维
Codeforces Round #661 (Div. 3) C.Boats CompetitionCompetition
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=2e5
ACkingdom
·
2020-08-09 04:39
思维
【杭电多校2020】第六场1009.Divisibility
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=2e5
ACkingdom
·
2020-08-09 04:05
思维
JS中比较2个字符串内元素的不同(字符1, 字符2, 分隔符可选)
比较2个字符串内元素的不同(字符1,字符2,分隔符可选)文件:diff.js//示例用法/*varstr1="
tie
,mao,55";varstr2="
tie
,mao,csdn";varresult=diff
铁锚
·
2020-08-08 20:41
JS笔记
装饰模式案例
现阶段服装(Finery)包含T恤(TShirt),牛仔裤(Jean),运动鞋(Sneaker),西装(Suit),领带(
Tie
),皮鞋(LeatherShoe)六种,在将来可能会增加新的服装,并且角色服装可以依据用
benxiaohai888
·
2020-08-08 14:25
设计模式
Codeforces Round #662 (Div. 2)
100;5constllmod=1e9+7;6llt,n;78intmain(){9//freopen("in.txt","r",stdin);10ios::sync_with_stdio(0),cin.
tie
Zabreture
·
2020-08-08 01:00
洛谷:P1427 小鱼的数字游戏 (数组翻转)
defineintlonglong#definepiipair#definelowbit(x)(x&(-x))#definels(x)x=a;i--)#defineIOSios::sync_with_stdio(0);cin.
tie
S atur
·
2020-08-06 09:53
水题合集
一招教你给leetcode submission提速
我仔细查看他的代码,发现了这么一段:staticintx=[](){ios::sync_with_stdio(false);cin.
tie
(NULL);return0;}();这段代码利用了lambda
chenf99
·
2020-08-05 18:03
算法
【杭电多校2020】第三场1005.Little W and Contest(并查集)
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=1e5
ACkingdom
·
2020-08-05 17:09
思维
并查集
0x61 图论-最短路
www.luogu.com.cn/problem/P1948分层图最短路#includeusingnamespacestd;#definejsios::sync_with_stdio(false);cin.
tie
RioTian
·
2020-08-05 15:00
Convex HDU - 5979(数论,三角形面积)
高中数学公式...AC代码:#include#include#include#include#include#include#defineIOSios::sync_with_stdio(false);cin.
tie
Alanrookie
·
2020-08-04 23:30
ACM_数论
E2. Asterism (Hard Version)(思维)
constintN=6e5+5;intt;intmain(){ios::sync_with_stdio(false);cin.
tie
(nullptr);//freopen("in.txt","r",stdin
DQYZhwk
·
2020-08-04 17:41
Codeforces
pupil
codeforces1373F. Network Coverage
组成,然后判断这个值和b[i]的大小#includeusingnamespacestd;typedeflonglongll;intmain(){ios::sync_with_stdio(0);cin.
tie
best_jayce
·
2020-08-04 17:23
算法
PAT (Basic Level) 1028 人口普查
代码#includeusingnamespacestd;intmain(){ios::sync_with_stdio(false);cin.
tie
(nullptr);cout.
tie
(nullptr);
xavier_cai
·
2020-08-04 13:45
codeforces1373E. Sum of Digits
题意:定义f(x)为x的所有数位和,给定n(0=intmain(){std::ios::sync_with_stdio(false);std::cin.
tie
(nullptr);intt;std::cin
best_jayce
·
2020-08-04 11:11
算法
Atcoder Grand Contest 033 简要题解
0,1,0,-1};intmain(){#ifdefwxh010910freopen("input.txt","r",stdin);#endifios::sync_with_stdio(false);cin.
tie
wxh010910
·
2020-08-04 08:40
Atcoder Grand Contest 034 简要题解
includeusingnamespacestd;intmain(){#ifdefwxh010910freopen("input.txt","r",stdin);#endifios::sync_with_stdio(false);cin.
tie
wxh010910
·
2020-08-04 08:40
CodeForces Gym 102055 简要题解
includeusingnamespacestd;intmain(){#ifdefwxh010910freopen("input.txt","r",stdin);#endifios::sync_with_stdio(false);cin.
tie
wxh010910
·
2020-08-04 08:39
CodeForces Gym 102156 简要题解
includeusingnamespacestd;intmain(){#ifdefwxh010910freopen("input.txt","r",stdin);#endifios::sync_with_stdio(false);cin.
tie
wxh010910
·
2020-08-04 08:38
UVA 11636(贪心)
UVA11636话不多说,直接贴代码#includeusingnamespacestd;intmain(){ios::sync_with_stdio(0),cin.
tie
(0);intn;intcnt=
凄凉夏风
·
2020-08-04 06:15
codeforces gym 101611C 重链剖分构造
然后沿着重儿子向下走即可#include#defineendl'\n'#definelllonglong#definepiipair#defineIOios::sync_with_stdio(false);cin.
tie
weixin_30613343
·
2020-08-04 04:58
2018 JUST Programming Contest 1.0 H. Genta Game
水题一道,不过我为什么要将她记录下来呢,在wa了无数次后,我胡乱的吧输入同步(#defineIOSios::sync_with_stdio(0);cin.
tie
(0);cout.
tie
(0);)取消掉了
Mr.Gzj
·
2020-08-03 12:12
codeforces
[2020年百度之星·程序设计大赛-初赛一]Coda的题解集
#includeconstintinf=0x3f3f3f3f;usingnamespacestd;intmain(){ios::sync_with_stdio(0);cin.
tie
(0)
Coda Limit Exceeded
·
2020-08-03 12:53
2020牛客暑期多校训练营(第三场)F-Fraction Construction Problem(数论,拓展欧几里得)
题目链接思路:移步博客代码:#includeusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
ACkingdom
·
2020-08-03 12:06
思维
数学
2020牛客暑期多校训练营(第四场) H-Harder Gcd Problem
代码:#includeusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cou
ACkingdom
·
2020-08-03 12:06
数学
思维
分层架构是使用最多的架构模式 Layers模式 也称
Tie
Atitit架构之道之可读性可维护性架构之道提升效率架构之道attilax著艾龙著1.1.Hybrid架构11.2.分层架构是使用最多的架构模式Layers模式也称Tiers模式11.3.MVC架构11.4.微内核架构•Microkernel(微核)模式11.5.元模型架构:21.6.管道-过滤器架构:2.2.2PipesandFilters模式21.7.点对点(PeertoPeer)对等风格21
attilax
·
2020-08-02 22:19
Codeforces Round #506 (Div. 3) B. Creating the Contest
严格满足每个元素不同并且序列为上升序列,求出满足a[i]usingnamespacestd;constintN=2e5+6;intmain(){ios::sync_with_stdio(false);cin.
tie
图南1204
·
2020-08-02 21:33
codeforces
模拟题目
Codeforces div2 660
A-CaptainFlintandCrewRecruitment刚开始还想筛法求质数,最后发现是个脑筋急转弯#defineIOios::sync_with_stdio(false);cin.
tie
();
Fighting_Peter
·
2020-08-02 21:19
Codeforces
c++
数据结构
算法
Finding the Order
Input235535335OutputAB//CDAB//DCAC代码#include#includeusingnamespacestd;intmain(){ios::sync_with_stdio(false),cin.
tie
CoderSilence
·
2020-08-02 20:07
2020牛客暑期多校训练营
思维题
[LeetCode 1351~1354][周赛]周赛176题解
有cfdiv2D的感觉1351.统计有序矩阵中的负数题目链接第一种:二分staticconstautoio_speed_up=[](){ios::sync_with_stdio(false);cin.
tie
IDrandom
·
2020-08-02 16:48
LeetCode
#
LeetCode
-
周赛
上一页
8
9
10
11
12
13
14
15
下一页
按字母分类:
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
其他