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
牛客编程巅峰赛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
-
周赛
2018-2019赛季多校联合新生训练赛第七场(2018/12/16)补题题解
A面积(语法基础)这个公式都记得啊应该就是S=(上底+下底)*高/2代码#includeusingnamespacestd;intmain(){ios::sync_with_stdio(0);cin.
tie
weixin_30621711
·
2020-08-01 03:52
Codeforces Round #627 (Div. 3) F. Maximum White Subtree 换根DP
max(ans[u],dp[v]);elseans[v]=dp[v]+max(0,ans[u]);gao(v,u);}}intmain(){ios::sync_with_stdio(false);cin.
tie
夕林山寸
·
2020-07-31 16:35
动态规划---树形DP
CF
【杭电多校2020】第三场1009.Parentheses Matching
代码:#include#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
(0);constintN=2e5
ACkingdom
·
2020-07-31 13:36
思维
HDU 6333
代码:#include#defineINF0x3f3f3f3f#defineIOios::sync_with_stdio(0);cin.
tie
(0
Spy97
·
2020-07-31 12:39
莫队
2018
Training
莫队
HDU
【Codeforces 1031C】Cram Time
definelllonglongusingnamespacestd;constintN=1e5;lla,b;lln;inttag[N+10];intmain(){ios::sync_with_stdio(0),cin.
tie
adgnfega11455
·
2020-07-30 19:32
2020牛客多校训练 G-Grid Coloring
constintINF=0x3f3f3f3f;constdoublepi=acos(-1),eps=1e-8;intmain(){//ios::sync_with_stdio(false);//cin.
tie
做回甲乙丙丁
·
2020-07-30 16:41
合并回文子串
constintmaxn=110;chara[maxn],b[maxn];boolf[maxn][maxn][maxn][maxn];intmain(){ios::sync_with_stdio(false);cin.
tie
为君倾此杯
·
2020-07-30 13:30
牛客
2020牛客暑期多校训练营(第四场) B.Basic Gcd Problem(思维,数学)
代码:#includeusingnamespacestd;#defineintlonglong#defineIOSios::sync_with_stdio(false);cin.
tie
(0);cout.
tie
ACkingdom
·
2020-07-30 07:44
数学
思维
Educational Codeforces Round 88
A先尽可能多分给一个人,其他人平分intmain(){ios::sync_with_stdio(false);cin.
tie
(0);intt;cin>>t;while(t--){intn,m,k;cin
swpu_cd
·
2020-07-30 04:19
cf
Codeforces Round #642
A分析可得:当n≥3n\ge3n≥3时就能取得最大值2m2m2mintmain(){ios::sync_with_stdio(false);cin.
tie
(0);intt;cin>>t;while(t-
swpu_cd
·
2020-07-30 04:19
cf
二维费用背包(模板)
;intc[maxn],v[maxn],w[maxn];//价值,体积,重量intdp[maxn][maxn][maxn];intmain(){ios::sync_with_stdio(0);cin.
tie
rising_sun2233
·
2020-07-30 01:07
刷题(嘤嘤嘤)
多重背包(模板)
constintmaxn=5001;intc[maxn],w[maxn],m[maxn];intdp[maxn][maxn];intmain(){ios::sync_with_stdio(0);cin.
tie
rising_sun2233
·
2020-07-30 01:07
刷题(嘤嘤嘤)
上一页
9
10
11
12
13
14
15
16
下一页
按字母分类:
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
其他