#codeforces

Codeforces 768A Oath of the Night's Watch

A.OathoftheNight'sWatchtimelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutput"Nightgathers,andnowmywatchbegins.Itshall...
代码星球 ·2020-04-14

Codeforces 768B Code For 1

B.CodeFor1timelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputJonfoughtbravelytorescuethewildlingswhowereattackedbyt...
代码星球 ·2020-04-14

Codeforces 716A Crazy Computer

A.CrazyComputertimelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputZStheCoderiscodingonacrazycomputer.Ifyoudon'ttype...

Codeforces 719B Anatoly and Cockroaches

B.AnatolyandCockroachestimelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputAnatolylivesintheuniversitydormasmanyother...

Codeforces 714A Meeting of Old Friends

A.MeetingofOldFriendstimelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputTodayanoutstandingeventisgoingtohappeninthef...

Codeforces 712C Memory and De-Evolution

C.MemoryandDe-Evolutiontimelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputMemoryisnowinterestedinthede-evolutionofo...

Codeforces 712B Memory and Trident

B.MemoryandTridenttimelimitpertest:2secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputMemoryisperformingawalkonthetwo-dimensionalpla...

Codeforces 708A Letters Cyclic Shift

A.LettersCyclicShifttimelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputYouaregivenanon-emptystringsconsistingoflower...

Codeforces Round #234 (Div. 2) A. Inna and Choose Options

A.InnaandChooseOptionstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherealwaysissomethingtochoosefrom!Andnow,inste...

Codeforces 129A-Cookies(暴力)

A.Cookiestimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputOlgacametovisitthetwinsAnnaandMariaandsawthattheyhavemanyco...
代码星球 ·2020-04-06

Codeforces Round #242 (Div. 2) A. Squats

A.Squatstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPashahasmanyhamstersandhemakesthemworkout.Today,nhamsters(nis...

Codeforces Round #178 (Div. 2) B .Shaass and Bookshelf

Shaasshasnbooks.Hewantstomakeabookshelfforallhisbooks.Hewantsthebookshelf'sdimensionstobeassmallaspossible.Thethicknessofthei-thbookistianditspages'widthisequal...

Codeforces Round #361 div2

ProblemA(CodeforcesRound 689A):题意:  给一个手势,问这个手势是否是唯一。 思路:  暴力,模拟将这个手势上下左右移动一次看是否还在键盘上即可。 代码:  1#include<cmath>2#include<cstdio>3#incl...
代码星球 ·2020-04-01

Codeforces Round #329 div2

Problem_A(593A):题意:  给n个单词,每个单词由小写字母组成,且长度<=1000.  组成一篇文章的要求是:    所有单词所用字母<=2    即最多只能有两个不同的字母。  求一篇文章的最长长度。 思路:  首先注意到单词都是由小写字母组成,小写字母只有26个,所以可以转换一下...
代码星球 ·2020-04-01

Codeforces Round #328 div2

Problem_A(592A):题意:  在一个8*8的棋盘上有黑白两种棋子,'W'代表白色,'B'代表黑色。  玩家A执白子,先走。白子只能向上走,黑子只能向下走。如果有障碍物则不能走,比如白色的上方有一个黑子,那么白子不能走。  谁先走到边界谁就赢了。求解谁会赢 思路:  白子只能往上走,黑子只能往下走。...
代码星球 ·2020-04-01
首页上一页...7891011下一页尾页