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
Beginner
Atcoder
beginner
contest 175 E题解
题目链接:https://atcoder.jp/contests/abc175/tasks/abc175_e题目大意:有k个有价值的物品分布在R*C的地图中,从(1,1)位置走到(r,c)位置,如果该位置有物品可以选择是否得到,每行最多能够选择得到三个物品。问到(r,c)位置能得到最大的价值。思路:如果不加一个每行最多能捡起三个物品的限制条件,就是我们很熟悉的dp题。但是加了一个限制条件,dp的状
憨厚的小马
·
2020-08-17 18:10
动态规划
Atcoder
beginner
contest(ABC) 133 E题解
Description给定一个nnn个节点的树。现在你拥有kkk种颜色,你要用这些颜色给树上的每个节点染色,使得任何两个距离不大于222的不同节点所被染的颜色不同。由于答案可能过大,请将其对109+710^9+7109+7取模。Solution不管各位大佬有多强一眼看穿这题,但是本蒟蒻没有这个本事。于是,我从宏观想,一直向下剖析,最终得到了正解。于是,这篇题解将会变得格外详细。Part1这是经典的
Cherrt
·
2020-08-17 11:00
数学
数据结构
seata程序包io.seata.codec.protobuf.generated不存在
io.seata.server启动不了本地执行下mvncleaninstall-DskipTests=truehttps://seata.io/zh-cn/docs/ops/deploy-guide-
beginner
.html
--LIANG--
·
2020-08-17 10:12
seata分布式事务
java
【队伍训练2】 AtCoder
Beginner
Contest 165
A水题:#includeusingnamespacestd;intmain(){intk;cin>>k;inta,b;cin>>a>>b;for(inti=1;;i++){if(i*k>b){cout=a&&i*kusingnamespacestd;typedefunsignedlonglongull;intmain(){ullx;cin>>x;ullsum=100;ulltot=0;while(
zha_zha_wei
·
2020-08-16 01:50
c
c++
Ubuntu下初学ROS时所遇小问题
【1】运行命令$rospackdepends1
beginner
_tutorials时,提示:[rospack]Error:nosuchpackagebeginner_tutorials后来弄明白了,原来在我新建工程后
azhuty
·
2020-08-15 22:26
ROS
ROS遇到问题:rosdep找不到
当在catkin工作区创建好了包以后,要rospackdepends1
beginner
_tutorials,出现了以下的提示错误:[rospack]Error:therosdepviewisempty:
糊涂小姐
·
2020-08-15 21:52
ros
AtCoder
Beginner
Contest 158 题解报告
AStationandBus传送门陈述题#include#definerep(i,a,b)for(inti=(a);i=(b);i--)#definerush()intT;scanf("%d",&T);while(T--)#definemm(a,b)memset(a,b,sizeof(a))#definepiipair#definempmake_pair#definepbpush_back#def
肘子zhouzi
·
2020-08-15 20:09
日常code
Atcoder
beginner
contest 129D Lamp
https://atcoder.jp/contests/abc129/tasks/abc129_d题意:在一个由“.”和“#”构成的图中,找一个点使它在上下方向和左右方向能直接到达的“.”最多(“#”不能穿过)。思路:先预处理出每一个点左右和上下方向能到的数量,在暴力枚举每一个点,取最大值。难度貌似不大。#include#include#include#include#include#includ
OlER小昆
·
2020-08-15 20:59
atcoder
atcoder
Atcoder
beginner
contest 120D Decayed Bridges
https://atcoder.jp/contests/abc120/tasks/abc120_d题意:一张图的边由输入的顺序不断被切断,求每次切断后有多少对点不能互相到达。思路:可以用并查集解决。倒着操作,往里加边。输出的答案为总的点对的数量减去每一个集合中点对的数量之和。模拟就过了。#include#include#include#include#include#include#include
OlER小昆
·
2020-08-15 20:59
atcoder
Atcoder
beginner
contest 124D Handstand
https://atcoder.jp/contests/abc124/tasks/abc124_d题意:有一个由01组成的字符串,每次可以选一段,其中的01变成相反的。最多k次操作后,求连续的1的个数最多是多少。思路:每次可以将连续一部分变相反。先统计出共有几部分,每一部分有相同数字组成,相邻两部分的数字不相同。可以发现每次最多取2k+1个组。然后枚举算一下最大的和是多少。细节处理一下就好。#in
OlER小昆
·
2020-08-15 20:59
atcoder
AtCoder
Beginner
Contest 129 解题报告
传送门写了四个题就跑去打球了。第五题应该能肝出来的。A-Airplane#includeusingnamespacestd;inlineintread(){intx=0,f=1;charch=getchar();while(ch'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&chusingnamespacestd;inlineintread(){
weixin_34378922
·
2020-08-15 20:46
AtCoder
Beginner
Contest 124 解题报告
去打cometoj的比赛去了qwq然后这场开局就有点晚...估计小号涨不了啥分。atc啥时候才有arc啊....A#includeusingnamespacestd;intmain(){inta,b;cin>>a>>b;intans=max(a*2-1,max(b*2-1,a+b));coutusingnamespacestd;intf[110],a[110],ans=0;intmain(){in
weixin_30636089
·
2020-08-15 19:30
AtCoder
Beginner
Contest 122 D - We Like AGC (DP)
D-WeLikeAGCTimeLimit:2sec/MemoryLimit:1024MBScore:400400pointsProblemStatementYouaregivenanintegerNN.FindthenumberofstringsoflengthNNthatsatisfythefollowingconditions,modulo109+7109+7:Thestringdoesnot
weixin_30562507
·
2020-08-15 19:57
AtCoder
Beginner
Contest 067 (A,B,C,D)
A-SharingCookies有A个饼干和B个饼干,可以给羊A、B或A+B个饼干,要求三个羊可以平分。一开始没有读懂题,以为给A+B就行了,错了一次。1#include2#include3#include4#include5#definelllonglong6usingnamespacestd;78intmain(){9inta,b;10cin>>a>>b;11if((a+b)%3==0||a%
weixin_30411819
·
2020-08-15 19:50
AtCoder
Beginner
Contest 054
D-MixingExperiment题意:n个物品,给出一个比例a:b,保证a,b互质,要求你使用这n个物品配出a:b的比例的最小价值,每个物品最多只能使用一次很裸的01背包,比赛的时候愣是没看到每个物品只能使用一次很烦#include#include#include#include#includeusingnamespacestd;#defineLLlonglongconstintnmax=40
Yokile_
·
2020-08-15 19:39
Atcoder
[AtCoder
Beginner
Contest 131]A~E简要解析
【因中考失踪人口回归】咳咳,进入正题~~A题Security题目大意就是输入一个四位数,看有没有连续的俩数字。code#includeintmain(){inta,b,c,d;scanf("%01d%01d%01d%01d",&a,&b,&c,&d);if(a==b||b==c||c==d)printf("Bad\n");elseprintf("Good\n");return0;}B题BiteEa
Little-Qiao
·
2020-08-15 19:50
AtCoder
Beginner
Contest 139 E题(还未解决)
题意:给出n*(n-1)的矩阵,第i行给出第i个人所应对的对手j按照从1~n的顺序出战,每人每天只能打一场。问所需要的天数;思路:直接用一个队列模拟整个过程,需要记录上一轮对战的轮数以及当前对战的位置。分别用ls[]和ci[]来表示#includeusingnamespacestd;constintN=1e3+10;inta[N][N],ci[N],ls[N];intn;structnode{in
LIA_7
·
2020-08-15 18:01
题目
数据结构
AtCoder
Beginner
Contest 126
前两题太水了就不写了。C-DiceandCoin题意:给一个n面的色子,每次掷到正面就翻一倍,否则得零分,如果最后所得分数大于等于k,那么你赢,否则如果得0分,那么就输掉了比赛。问你有多大纪律赢。思路:a*2^n=k,n=log2(k/a);然后计算即可。#includeusingnamespacestd;intmain(){intn,k;scanf("%d%d",&n,&k);doubleans
Q王路飞
·
2020-08-15 18:57
AtCoder
Beginner
Contest 071 ABCD
1001求个绝对值比较大小喽1002把字符串出现的字母记录一下,然后遍历a-z,谁第一个没出现就输出谁1003ProblemStatementWehaveNstickswithnegligiblethickness.Thelengthofthei-thstickisAi.Snukewantstoselectfourdifferentsticksfromthesesticksandformarect
anvqxl0105
·
2020-08-15 18:23
AtCoder
Beginner
Contest 058 ABCD题
A-ι⊥lTimelimit:2sec/Memorylimit:256MBScore:100pointsProblemStatementThreepolesstandevenlyspacedalongaline.Theirheightsarea,bandcmeters,fromlefttoright.Wewillcallthearrangementofthepolesbeautifulifthet
anvqxl0105
·
2020-08-15 18:23
AtCoder
Beginner
Contest 076 D - AtCoder Express
1匀加速阶段:inc=min{vi-cur,(lim+t[i]-cur)/2,t[i]};2匀减速阶段:dec=max{0,cur+inc-lim};3匀速阶段:kep=t[i]-inc-dec。//main.cpp//D-AtCoderExpress////Createdbywenhanon2017/10/28.//Copyright©2017年wenhan.Allrightsreserved.
aaakirito
·
2020-08-15 18:10
ACM算法题
AtCoder
Beginner
Contest 122 English D We Like AGC
题意:给你一个数n,问你长度为n的字符串中有多少个不包含AGC的字符串,字符串只包含字母:‘A’,‘C’,‘G’,‘T’,字符串可以进行一次交换,例如:AGC字符串通过交换一次可以得到ACG,GAC;思路:自己不会做,只能百度别人的题解,这里打上自己的理解,先找一下规律,就比如组成一个长度为4的字符串,可以发现它仅与前三个字符有关,那么组成长度为5的字符串呢,可以发现还是仅与前三个字符串有关。很明
Gee_Zer
·
2020-08-15 18:18
DP
Atcoder
beginner
contest 122D We like AGC
https://atcoder.jp/contests/abc122/tasks/abc122_d题意:由AGCT组成的长度为n的字符串中满足1.不含有“AGC”,2.把任意两个相邻的字符交换后也满足没有“AGC”。求这样的字符串个数。思路:可以用dp解决。当前能不能这个字母只于前3个字母有关。设dp[i][a][b][c]为长度为i时第i-3个字母是c,第i-2个字母是b,第i-1个字母是a时的
OlER小昆
·
2020-08-15 18:27
atcoder
AtCoder
Beginner
Contest 106 ABCD
A-GardenProblemStatementThereisafarmwhoselengthandwidthareAyardandByard,respectively.Afarmer,John,madeaverticalroadandahorizontalroadinsidethefarmfromonebordertoanother,asshownbelow:(Thegraypartrepres
weixin_30387423
·
2020-08-15 17:06
AtCoder
Beginner
Contest 129
ABCD签到(A、B、C过水已隐藏)#includeusingnamespacestd;constintN=2003;intn,m,ans,f1[N][N],f2[N][N],f3[N][N],f4[N][N];charmp[N][N];intmain(){scanf("%d%d",&n,&m);for(inti=1;iusingnamespacestd;constintN=1e5+7,mod=1
weixin_30578677
·
2020-08-15 17:06
AtCoder
Beginner
Contest 054 ABCD题
A-OneCardPokerTimelimit:2sec/Memorylimit:256MBScore:100pointsProblemStatementAliceandBobareplayingOneCardPoker.OneCardPokerisatwo-playergameusingplayingcards.Eachcardinthisgameshowsanintegerbetween1an
anvqxl0105
·
2020-08-15 17:59
AtCoder
Beginner
Contest 057 ABCD题
A-RemainingTimeTimelimit:2sec/Memorylimit:256MBScore:100pointsProblemStatementDolphinlovesprogrammingcontests.Today,hewilltakepartinacontestinAtCoder.Inthiscountry,24-hourclockisused.Forexample,9:00p.
anvqxl0105
·
2020-08-15 17:28
AtCoder
Beginner
Contest 053 ABCD题
A-ABC/ARCTimelimit:2sec/Memorylimit:256MBScore:100pointsProblemStatementSmekehasdecidedtoparticipateinAtCoderBeginnerContest(ABC)ifhiscurrentratingislessthan1200,andparticipateinAtCoderRegularContest(
anvqxl0105
·
2020-08-15 17:27
AtCoder
Beginner
Contest 051 ABCD题
A-HaikuTimelimit:2sec/Memorylimit:256MBScore:100pointsProblemStatementAsaNewYear'sgift,Dolphinreceivedastringsoflength19.Thestringshasthefollowingformat:[fivelowercaseEnglishletters],[sevenlowercaseEn
anvqxl0105
·
2020-08-15 17:27
AtCoder
Beginner
Contest 050(ABCD)
A-AdditionandSubtractionEasy思路:依题意即可。B-ContestwithDrinksEasy思路:简单模拟。C-LiningUp思路:乘法原理,用数组维护下每个数出现次数,注意特判下nnn为奇数,000只有一种,其他是两种.intn;cin>>n;intf=1,jg=n&1;llans=1;intcnt=0;for(inti=1;i>x;if(!x)cnt++;if(j
Harris-H
·
2020-08-15 17:17
Atcoder题解
AtCoder
Beginner
Contest 051(ABCD)
AtCoderBeginnerContest051(ABCD)A-Haiku思路:直接模拟。B-SumofThreeIntegers思路:暴力枚举。C-BackandForth思路:按矩阵走一个来回后再围一层矩阵走即可。D-CandidatesofNoShortestPaths思路:多源最短路判断路径,用spfaspfaspfa记录存在的路径然后用mmm减即可,标答的floydfloydfloyd
Harris-H
·
2020-08-15 17:17
Atcoder题解
AtCoder
Beginner
Contest 137 E - Coins Respawn
E-CoinsRespawnTimeLimit:2sec/MemoryLimit:1024MB配点:500500点問題文11からNNまでの番号がつけられたNN頂点とMM辺からなる有向グラフがあります。ii番目の辺は頂点AiAiから頂点BiBiへと向かい、この辺の上にはCiCi枚のコインが置かれています。また、頂点NNにはボタンが設置されています。このグラフ上でゲームを行います。あなたは頂点11でコ
wind_bow
·
2020-08-15 15:11
图论-最短路
AtCoder
Beginner
Contest 085 D Katana Thrower(贪心)
ProblemStatementYouaregoingoutforawalk,whenyousuddenlyencounteramonster.Fortunately,youhaveNkatana(swords),Katana1,Katana2,…,KatanaN,andcanperformthefollowingtwokindsofattacksinanyorder:Wieldoneofthek
Int32ToByte
·
2020-08-15 14:32
acm
TSG CTF 2020:
Beginner
‘s Crypto 密码学中的数论基础——逆元
0x0问题描述Suffixsuffices,right?Hintforbeginners:Canyouseethetwoassertfunctionsintheattachedpythonscript?Thesearedescribingthepreconditionstobemet.Thesestatementsreadthesecretcontentofthefilenamedflag.txt
江下枫
·
2020-08-15 11:56
CTF/PWN
【Pytorch】dataloader使用教程
https://www.jianshu.com/p/8ea7fba72673https://pytorch.org/tutorials/
beginner
/data_loading_tutorial.htmlnum_works
Douzi1024
·
2020-08-14 13:01
matplotlib--python绘制图表 | PIL--python图像处理
matplotlib.org/gallery.html文档http://matplotlib.org/contents.html中文入门http://azaleasays.com/2010/04/27/matplotlib-
beginner
-guide
吓人的鸟
·
2020-08-13 23:57
编程语言-python
CS61b class2
(String[]args){intN=args.length;intsum=0;inti=0;while(ijavacsumargs.javaC:\Users\phoeb\IdeaProjects\
beginner
weixin_44053979
·
2020-08-13 22:20
Java
UCB CS61b——Class 1
编译在terminal中,运行Java程序,首先dir(相当于Linux中的ls)和cd到对应文件夹javacxxx.java编译Java程序C:\Users\phoeb\IdeaProjects\
beginner
weixin_44053979
·
2020-08-13 22:20
Java
深入了解IPFS(1/6):从入门到高级指南
原文:https://medium.com/hackernoon/understanding-ipfs-in-depth-1-5-a-
beginner
-to-advanced-guide-e937675a8c8a
Null_Value
·
2020-08-13 22:58
IPFS
ROS主题发布订阅
改变目录到之前所建立的那个包下:cd~/catkin_ws/src/
beginner
_tutorials在
beginner
_tutorials包下面建立一个src文件夹:mkdir-p~/catkin_ws
asm2826
·
2020-08-13 13:32
atcoder
Beginner
Contest 156 Roaming(组合数学 插板法)
题目大意:有n个数,每个都是1,我们每次可以选择1个数减1,然后让另外一个数加1。但是我们不能生成负数。问我们假如进行k次操作,问我们这n个数能产生多少种不同的组合。注意[1,0,2]和[2,0,1]当作不同的组合。3#defineintlonglongusingnamespacestd;constintMODN=1e9+7;constintMAXN=2e5+10;intfact[MAXN];in
FrostMonarch
·
2020-08-13 11:49
atcoder
组合数学
Unity Editor扩展入门(1) Unity Editor功能扩展所使用的文件夹
UnityEditor功能扩展所使用的文件夹TranslatedbyXdestiny2017/10/14日文原文地址:http://anchan828.github.io/editor-manual/web/part2-
beginner
.html
xdestiny110
·
2020-08-13 11:17
Unity开发
ctags使用简介(linux下的代码管理工具)
http://linux.chinaunix.net/techdoc/
beginner
/2009/06/10/1117629.shtmlctags使用简介Vi大家都很熟悉,某些情况下它是我们在Linux
james_hw
·
2020-08-13 10:10
linux
SpringCloud Alibaba之Seata 1.2版本的分布式事务案例演示
//mp.weixin.qq.com/s/2KSidJ72YsovpJ94P1aK1gseata官徽新人文档:https://seata.io/zh-cn/docs/ops/deploy-guide-
beginner
.html
TOP__ONE
·
2020-08-12 16:57
SpringCloud
SpringCloud
Alibaba
Springboot
AtCoder
Beginner
Contest 045(ABCD)题解
AtCoderBeginnerContest045(ABCD)题解A-Trapezoids思路:求梯形面积,显然s=(a+b)h2s=\dfrac{(a+b)h}{2}s=2(a+b)h#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7;#definemst(a)m
Harris-H
·
2020-08-11 19:07
Atcoder题解
AtCoder
Beginner
Contest 043题解(ABCD)
AtCoderBeginnerContest043题解(ABCD)传送门A-ChildrenandCandies(ABCEdit)题意:求∑i=1ni\sum\limits_{i=1}^nii=1∑ni思路:签到题,直接按照公式输出n(n+1)2\dfrac{n(n+1)}{2}2n(n+1)。时间复杂度:O(1)O(1)O(1)#includeusingnamespacestd;typedefl
Harris-H
·
2020-08-11 19:07
Atcoder题解
ABC
Atcoder
AtCoder
Beginner
Contest 044(ABCD)题解
AtCoderBeginnerContest044(ABCD)题解传送门A-TakandHotels(ABCEdit)思路:显然讨论一下kkk的范围即可。时间复杂度:O(1)O(1)O(1)#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7;#definemst(a
Harris-H
·
2020-08-11 19:07
Atcoder题解
AtCoder
Beginner
Contest 046(ABCD)题解
AtCoderBeginnerContest046(ABCD)题解传送门A-AtCoDeerandPaintCans思路:用一个setsetset维护一下不同的数输出集合大小即可。#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7;#definemst(a)mems
Harris-H
·
2020-08-11 19:07
Atcoder题解
How to Mine Ethereum - A
Beginner
's Guide
[ThisguidewaswrittenwiththehelpofminingspecialistsfromHashFlare.io]MiningEthereumisnorocketscience,evenonWindows.Therewillbesomecommandpromptandscriptwritinginvolved,butthisguidewillcovereverythingyou
Metal1
·
2020-08-11 16:39
AtCoder
Beginner
Contest 165 A ~~D
A水题:#includeusingnamespacestd;intmain(){intk;cin>>k;inta,b;cin>>a>>b;for(inti=1;;i++){if(i*k>b){cout=a&&i*kusingnamespacestd;typedeflonglongll;intmain(){llx;cin>>x;llsum=100;lltot=0;while(sum#definein
zha_zha_wei
·
2020-08-11 03:59
c
c++
AtCoder
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他