#CPC

2019 ICPC上海站K.Color Graph

ColorGraph题意:给出一个由(n)个点和(m)条边组成的无向图,保证无自环无重边,初始时所有的边都是白色的,每一次都可以选择一条边把它染成红色,不过需要保证不存在红色的奇环,现在要求尽可能多的将白边染成红色,问最多能染多少条边题解:看到奇环首先想到二分图:所以这道题就转化成了一个二分图问题:就是要找尽可能多的边...

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

Game Rank(NCPC 2016 大模拟)

题目:ThegamingcompanySandstormisdevelopinganonlinetwoplayergame.Youhavebeenaskedtoimplementtherankingsystem.Allplayershavearankdeterminingtheirplayingstrengthwhic...
代码星球 ·2020-07-18

Fleecing the Raffle(NCPC 2016 暴力求解)

题目:Atremendouslyexcitingraffleisbeingheld,withsometremendouslyexcitingprizesbeinggivenout.Allyouhavetodotohaveachanceofbeingawinneristoputapieceofpaperwithyourn...

Daydreaming Stockbroker(2016 NCPC 贪心)

题目:GinaReed,thefamousstockbroker,ishavingaslowdayatwork,andbetweenroundsofsolitairesheisdaydreaming.Foretellingthefutureishard,butimagineifyoucouldjustgobackint...

Ice Cream Tower(The 2016 ACM-ICPC Asia China-Final Contest 二分&贪心)

题目:  Mr.Pandalikesicecreamverymuchespeciallytheicecreamtower.AnicecreamtowerconsistsofKicecreamballsstackingupasatower.Inordertomakethetowerstable,thelowericecr...
代码星球 ·2020-07-18

Bet(The 2016 ACM-ICPC Asia China-Final Contest 思路题)

题目:  TheCodejamongameisonfire!Fansacrosstheworldarepredictingandbettingonwhichteamwillwinthegame.  Agamblingcompanyisprovidingbettingoddsforallteams;theoddsfort...
代码星球 ·2020-07-18

World Cup(The 2016 ACM-ICPC Asia China-Final Contest dfs搜索)

题目:  HereisWorldCupagain,thetop32teamscometogethertofightfortheWorldChampion.Theteamsareassignedinto8groups,with4teamsineachgroup.Everytwoteamsinthesamegroupwil...
代码星球 ·2020-07-18

Number Theory Problem(The 2016 ACM-ICPC Asia China-Final Contest 找规律)

题目:Mr.Pandaisoneofthetopspecialistsonnumbertheoryallovertheworld.NowMr.Pandaisinvestigatingthepropertyofthepowersof2.Since7istheluckynumberofMr.Panda,heisalways...

ACM-ICPC 2018 南京赛区网络预赛

AAnOlympianMathProblem #include<bits/stdc++.h>usingnamespacestd;typedeflonglongll;llT,n;intmain(){scanf("%lld",&T);while(T--){scanf("%lld",&n...

ACM-ICPC 2018 沈阳赛区网络预赛

AGudakoandRitsuka BCallofAccepted CConvexHull DMadeInHeaven#include<bits/stdc++.h>usingnamespacestd;constintMM=1e5+5;constintINF=1e9+7;intd...

ACM-ICPC 2018 徐州赛区网络预赛

AHardtoprepare#include<bits/stdc++.h>usingnamespacestd;#defineN1000005longlongmod=1e9+7;longlongpower(longlonga,longlongb){a%=mod;longlongret=1;while(b){i...

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...

ACM-ICPC 2018 I. Characters with Hash

 I.CharacterswithHashMurloveshashalgorithm,andhesometimesencryptanotherone'sname,andcallhimwiththatencryptedvalue.Forinstance,hecallsKimuraKMR,andcallsSuzu...

C#调用斑马打印机打印条码标签(支持COM、LPT、USB、TCP连接方式和ZPL、EPL、CPCL指令)

在批量打印商品标签时一般都要加上条码或图片,而这类应用大多是使用斑马打印机,所以我也遇到了怎么打印的问题。一种办法是用标签设计软件做好模板,在标签设计软件中打印,这种办法不用写代码,但对我来说觉得不能接受,所以尝试代码解决问题。网上搜索一番,找不到什么资料,基本都是说发送ZPL、EPL指令到打印机,而且还是COM/LP...
首页上一页12下一页尾页