51
Dev开发社区
首页
文章
问答
工具
搜索
登录
注册
#CPC
2019 ICPC上海站K.Color Graph
ColorGraph题意:给出一个由(n)个点和(m)条边组成的无向图,保证无自环无重边,初始时所有的边都是白色的,每一次都可以选择一条边把它染成红色,不过需要保证不存在红色的奇环,现在要求尽可能多的将白边染成红色,问最多能染多少条边题解:看到奇环首先想到二分图:所以这道题就转化成了一个二分图问题:就是要找尽可能多的边...
代码星球
·
2020-12-28
2019
ICPC
上海
K.Color
Graph
2015 ICPC 沈阳站M题
M- MeetingTimeLimit:6000MS MemoryLimit:262144KB 64bitIOFormat:%I64d&%I64uSubmit cid=113817#status//M/0"class="ui-buttonui-widgetui-state-defaultui-c...
代码星球
·
2020-08-28
2015
ICPC
沈阳
Game Rank(NCPC 2016 大模拟)
题目:ThegamingcompanySandstormisdevelopinganonlinetwoplayergame.Youhavebeenaskedtoimplementtherankingsystem.Allplayershavearankdeterminingtheirplayingstrengthwhic...
代码星球
·
2020-07-18
Game
Rank
NCPC
2016
模拟
Fleecing the Raffle(NCPC 2016 暴力求解)
题目:Atremendouslyexcitingraffleisbeingheld,withsometremendouslyexcitingprizesbeinggivenout.Allyouhavetodotohaveachanceofbeingawinneristoputapieceofpaperwithyourn...
代码星球
·
2020-07-18
Fleecing
the
Raffle
NCPC
2016
Daydreaming Stockbroker(2016 NCPC 贪心)
题目:GinaReed,thefamousstockbroker,ishavingaslowdayatwork,andbetweenroundsofsolitairesheisdaydreaming.Foretellingthefutureishard,butimagineifyoucouldjustgobackint...
代码星球
·
2020-07-18
Daydreaming
Stockbroker
2016
NCPC
贪心
Ice Cream Tower(The 2016 ACM-ICPC Asia China-Final Contest 二分&贪心)
题目: Mr.Pandalikesicecreamverymuchespeciallytheicecreamtower.AnicecreamtowerconsistsofKicecreamballsstackingupasatower.Inordertomakethetowerstable,thelowericecr...
代码星球
·
2020-07-18
Ice
Cream
Tower
The
2016
Bet(The 2016 ACM-ICPC Asia China-Final Contest 思路题)
题目: TheCodejamongameisonfire!Fansacrosstheworldarepredictingandbettingonwhichteamwillwinthegame. Agamblingcompanyisprovidingbettingoddsforallteams;theoddsfort...
代码星球
·
2020-07-18
Bet
The
2016
ACM-ICPC
Asia
World Cup(The 2016 ACM-ICPC Asia China-Final Contest dfs搜索)
题目: HereisWorldCupagain,thetop32teamscometogethertofightfortheWorldChampion.Theteamsareassignedinto8groups,with4teamsineachgroup.Everytwoteamsinthesamegroupwil...
代码星球
·
2020-07-18
World
Cup
The
2016
ACM-ICPC
Number Theory Problem(The 2016 ACM-ICPC Asia China-Final Contest 找规律)
题目:Mr.Pandaisoneofthetopspecialistsonnumbertheoryallovertheworld.NowMr.Pandaisinvestigatingthepropertyofthepowersof2.Since7istheluckynumberofMr.Panda,heisalways...
代码星球
·
2020-07-18
Number
Theory
Problem
The
2016
ACM-ICPC 2018 南京赛区网络预赛
AAnOlympianMathProblem #include<bits/stdc++.h>usingnamespacestd;typedeflonglongll;llT,n;intmain(){scanf("%lld",&T);while(T--){scanf("%lld",&n...
代码星球
·
2020-06-21
ACM-ICPC
2018
南京
赛区
网络
ACM-ICPC 2018 沈阳赛区网络预赛
AGudakoandRitsuka BCallofAccepted CConvexHull DMadeInHeaven#include<bits/stdc++.h>usingnamespacestd;constintMM=1e5+5;constintINF=1e9+7;intd...
代码星球
·
2020-06-21
ACM-ICPC
2018
沈阳
赛区
网络
ACM-ICPC 2018 徐州赛区网络预赛
AHardtoprepare#include<bits/stdc++.h>usingnamespacestd;#defineN1000005longlongmod=1e9+7;longlongpower(longlonga,longlongb){a%=mod;longlongret=1;while(b){i...
代码星球
·
2020-06-21
ACM-ICPC
2018
徐州
赛区
网络
ACM-ICPC 2018 焦作赛区网络预赛
A MagicMirror#include<bits/stdc++.h>usingnamespacestd;chars[20];intmain(){intT;scanf("%d",&T);cin.ignore();while(T--){gets(s);intlen=strlen(s);fo...
代码星球
·
2020-06-21
ACM-ICPC
2018
焦作
赛区
网络
ACM-ICPC 2018 I. Characters with Hash
I.CharacterswithHashMurloveshashalgorithm,andhesometimesencryptanotherone'sname,andcallhimwiththatencryptedvalue.Forinstance,hecallsKimuraKMR,andcallsSuzu...
代码星球
·
2020-06-08
ACM-ICPC
2018
Characters
with
Hash
C#调用斑马打印机打印条码标签(支持COM、LPT、USB、TCP连接方式和ZPL、EPL、CPCL指令)
在批量打印商品标签时一般都要加上条码或图片,而这类应用大多是使用斑马打印机,所以我也遇到了怎么打印的问题。一种办法是用标签设计软件做好模板,在标签设计软件中打印,这种办法不用写代码,但对我来说觉得不能接受,所以尝试代码解决问题。网上搜索一番,找不到什么资料,基本都是说发送ZPL、EPL指令到打印机,而且还是COM/LP...
代码星球
·
2020-05-12
调用
斑马
打印机
打印
条码
首页
上一页
1
2
下一页
尾页
按字母分类:
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
其他