![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
昨日明眸
个人爱好
展开
-
codeforces 2A winner(stl应用,模拟)
A. Winnertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe winner of the card game popular in Berland "Ber原创 2016-11-25 20:27:22 · 373 阅读 · 0 评论 -
codeforces 500C New Year Book Reading(取书)
New Year Book ReadingTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription柯南准备去读n本书,标号为1~n,每本书的重量为wi.柯南家太小啦,没办法放下一个书橱,于是就只好将这些书堆成一原创 2016-09-20 22:56:00 · 328 阅读 · 0 评论 -
CF - 500A New Year Transportation(查找位置)
New Year TransportationTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionNew Year is coming in Line World! In this world, there原创 2016-09-19 20:16:34 · 332 阅读 · 0 评论 -
codeforces 716B div2Complete the Word(找连续子串)
B. Complete the Wordtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder loves to read the diction原创 2016-09-18 21:58:05 · 601 阅读 · 0 评论 -
codeforces#290 B&&510 B Fox And Two Dots(简单dfs)
Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot that has some color. We will use diff原创 2016-08-15 10:11:45 · 300 阅读 · 0 评论 -
Codeforces Round #372 (Div. 2) A. Crazy Computer(显示字符)
A. Crazy Computertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder is coding on a crazy compute原创 2016-09-18 12:35:46 · 256 阅读 · 0 评论 -
Codeforces-711A Bus to Udayland(找座位)
A. Bus to Udaylandtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder and Chris the Baboon are tr原创 2016-09-04 18:59:01 · 349 阅读 · 0 评论 -
Wet Shark and Bishops
Wet Shark and BishopsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionToday, Wet Shark is given n bishops on a1000 by 1000 grid. Both row原创 2016-05-24 18:33:52 · 364 阅读 · 0 评论 -
Lucky Numbers (easy)(暴力解决)
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u DescriptionPetya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal repr原创 2016-05-17 18:15:18 · 2805 阅读 · 1 评论 -
异或运算
异或运算已知一个包含 $n$ 个元素的正整数集合 $S$,设 $f(S)$ 为集合 $S$ 中所有元素的异或(XOR)的结果。 如:$S = \{1, 2, 3\}$, 则 $f(S) = 0$。 给出集合 $S$,你需要计算 将所有 $f(s)$ 进行异或后的值, 这里 $s \subseteq S$.输入描述多组测试数据。第一行包含一个整数 $T(T\leq 20)$ 表示原创 2016-05-16 13:10:42 · 526 阅读 · 0 评论 -
Floyd算法简介
算法定义:Floyd-Warshall算法(Floyd-Warshall algorithm)是解决任意两点间的最短路径的一种算法,可以正确处理有向图或负权的最短路径问题,同时也被用于计算有向图的传递闭包。Floyd-Warshall算法的时间复杂度为O(N3),空间复杂度为O(N2)算法描述:1)算法思想原理: Floyd算法是一个经典的动态规划算法。用通转载 2016-05-16 12:55:25 · 1222 阅读 · 0 评论 -
思维测试
Toy ArmyTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe hero of our story, Valera, and his best friend Arcady are still in schoo原创 2016-05-16 12:41:41 · 358 阅读 · 0 评论 -
Petya and Countryside(子序列问题)
Petya and CountrysideTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionLittle Petya often travels to his grandmother in the countrysid原创 2016-05-16 12:28:56 · 428 阅读 · 0 评论 -
水题
FootballTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d& %I64uSubmit StatusDescriptionPetya loves football very much. One day, as he was watching a footballmatch,原创 2016-05-16 07:29:27 · 305 阅读 · 0 评论 -
Pie or die(欧拉函数,求最大公约数)
Pie or dieTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d& %I64u SubmitStatus DescriptionWell, here is another math class task. In mathematics, GCD is the greatestcom原创 2016-05-15 20:57:16 · 914 阅读 · 0 评论 -
CodeForces 554B
B. Ohana Cleans Uptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOhana Matsumae is trying to clean a room原创 2016-08-22 19:39:41 · 202 阅读 · 0 评论 -
Codeforces #369(Div.2)B.Chris and Magic Square(矩阵找数)
B. Chris and Magic Squaretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder and Chris the Baboon原创 2016-09-08 20:20:02 · 213 阅读 · 0 评论 -
CodeForces 501A Contest(最大得分)
ContestTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionMisha and Vasya participated in a Codeforces contest. Unfortunately, e原创 2016-09-21 17:37:58 · 311 阅读 · 0 评论 -
CodeForces 111B(数组模拟,记录因子位置)
Petya and DivisorsTime Limit:5000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u:Description描述:Little Petya loves looking for numbers' divisors. One day Petya came across the followin原创 2016-11-20 10:57:00 · 325 阅读 · 0 评论 -
codeforces 232A Cycles (构建图,贪心+模拟)
CyclesDescription描述John Doe started thinking about graphs. After some thought he decided that he wants to paint an undirected graph, containing exactly kcycles of length 3.A cycle of len原创 2016-11-13 14:38:50 · 388 阅读 · 0 评论 -
CodeForces 233B Non-square Equation(数学问题方程转化)
Non-square EquationTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescription:描述:Let's consider equation: x^2 + s(x)·x - n = 0, where x, n are positi原创 2016-11-13 14:06:29 · 430 阅读 · 0 评论 -
Codeforces 445 A DZY Loves Chessboard(预处理)
DZY Loves ChessboardTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionDZY loves chessboard, and he enjoys playing with it.He has a chessboard原创 2016-10-30 16:44:01 · 368 阅读 · 0 评论 -
CodeForces 444C. DZY Loves Physics
DZY Loves PhysicsDZY loves Physics, and he enjoys calculating density.Almost everything has density, even a graph. We define the density of a non-directed graph (nodes and edges of the graph hav原创 2016-10-30 16:38:00 · 324 阅读 · 0 评论 -
CF#215DIV2:B. Sereja and Suffixes(哈希记录)
Sereja and SuffixesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionSereja has an array a, consisting of n integers a1, a2, ..原创 2016-10-07 10:51:09 · 277 阅读 · 0 评论 -
Codeforces--368C--Sereja and Algorithm(规律)
Sereja and AlgorithmTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionSereja loves all sorts of algorithms. He has recently com原创 2016-10-07 10:37:33 · 361 阅读 · 0 评论 -
CodeForces 257C View Angle(求角度)
View AngleTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 257CAppoint description: System Crawler (Oct 17, 2016 1:45:35 PM原创 2016-10-19 17:03:29 · 403 阅读 · 0 评论 -
CodeForces 237C Primes on Interval(数学加二分)
Primes on IntervalTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 237CAppoint description: System Crawler (Oct 15, 2016原创 2016-10-17 20:38:27 · 248 阅读 · 0 评论 -
codeforces 486C Palindrome Transformation 贪心求构造回文
Palindrome TransformationTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionNam is playing with a string on his computer. The st原创 2016-10-02 21:19:37 · 265 阅读 · 0 评论 -
codeforces 486B OR in Matrix(位运算)
OR in MatrixTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionLet's define logical OR as an operation on two logical values (i.原创 2016-10-02 21:16:14 · 337 阅读 · 0 评论 -
codeforces 501C Misha and Forest(找边)
Misha and Foresttime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputLet's define a forest as a non-directed原创 2016-09-28 16:17:04 · 208 阅读 · 0 评论 -
CodeForces 337C Quiz(1等比数列找规律)
QuizTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 337CAppoint description: System Crawler (Oct 22, 2016 3:24:05 PM)jeh原创 2016-10-22 19:47:13 · 389 阅读 · 0 评论 -
Codeforces 500B New Year Permutation(更换位置,找最小字典数)
New Year PermutationTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionUser ainta has a permutation p1, p2, ..., pn. As the New原创 2016-09-19 20:46:31 · 486 阅读 · 0 评论 -
codeforces 501B Misha and Changing Handles(字符更换)
Misha and Changing HandlesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionMisha hacked the Codeforces site. Then he decided t原创 2016-09-21 17:47:57 · 594 阅读 · 0 评论 -
CodeForces 660A
A. Co-prime Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of n elements, you原创 2016-08-22 19:37:56 · 185 阅读 · 0 评论 -
CodeForces 632B
B. Alice, Bob, Two Teamstime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob are playing a game原创 2016-08-22 19:36:47 · 246 阅读 · 0 评论 -
HDU 5499 SDOI(sort+结构体)
HDU 5499 SDOI(sort+结构体)Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe Annual National Olympic of Information(NOI) will be held.The原创 2016-07-19 17:49:04 · 253 阅读 · 0 评论 -
Bear and Three Balls
Bear and Three Balls(sort)Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionLimak is a little polar bear. He has n balls, the i-th ball原创 2016-07-19 13:52:31 · 463 阅读 · 1 评论 -
CodeForces 371C Hamburgers制造汉堡包二分查找
HamburgersTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionPolycarpus loves hamburgers very much. He especially adores the ham原创 2016-07-27 09:23:26 · 368 阅读 · 0 评论 -
Codeforces Round #202 (Div. 1) A. Mafia二分查找,玩游戏
MafiaTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOne day n friends gathered together to play "Mafia". During each round o原创 2016-07-27 09:15:51 · 363 阅读 · 0 评论 -
codeforces 350 div2 D Magic Powder - 2 二分
Magic Powder - 2Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe term of this problem is the same as the previous one, the原创 2016-07-27 08:50:02 · 460 阅读 · 0 评论