随笔分类 - codeforces
摘要:Persistent Bookcase "CodeForces 707D " time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output R
阅读全文
摘要:Pursuit For Artifacts "CodeForces 652E " Johnny is playing a well known computer game. The game are in some country, where the player can freely trave
阅读全文
摘要:"D Nested Segments" "CodeForces 652D " You are given n segments on a line. There are no ends of some segments that coincide. For each segment find the
阅读全文
摘要:"D Beautiful Graph" "CodeForces 1093D " You are given an undirected unweighted graph consisting of nn vertices and mm edges. You have to write a numbe
阅读全文
摘要:Relatively Prime Powers "CodeForces 1036F " Consider some positive integer xx. Its prime factorization will be of form x=2k1⋅3k2⋅5k3⋅…x=2k1⋅3k2⋅5k3⋅…
阅读全文
摘要:Number of Parallelograms "CodeForces 660D " You are given n points on a plane. All the points are distinct and no three of them lie on the same line.
阅读全文
摘要:Diagonal Walking v.2 "CodeForces 1036B " Mikhail walks on a Cartesian plane. He starts at the point (0,0)(0,0), and in one move he can go to any of ei
阅读全文
摘要:"C Covered Points Count" "CodeForces 1000C " You are given nn segments on a coordinate line; each endpoint of every segment has integer coordinates. S
阅读全文
摘要:"D Yet Another Problem On a Subsequence" "CodeForces 1000D " The sequence of integers a1,a2,…,aka1,a2,…,ak is called a good array if a1=k−1a1=k−1 and
阅读全文
摘要:"E We Need More Bosses" "CodeForces 1000E " Your friend is developing a computer game. He has already decided how the game world should look like — it
阅读全文
摘要:You are given an array aa consisting of nn integers, and qq queries to it. ii th query is denoted by two integers lili and riri. For each query, you h
阅读全文
摘要:Almost Regular Bracket Sequence "CodeForces 1095E " You are given a bracket sequence ss consisting of nn opening '(' and closing ')' brackets. A regul
阅读全文
摘要:Sereja and Brackets 题目链接: "CodeForces 380C " Sereja has a bracket sequence s 1, s 2, ..., s n , or, in other words, a string s of length n , consistin
阅读全文
摘要:Sereja and Brackets 题目链接: "CodeForces 380C " Sereja has a bracket sequence s 1, s 2, ..., s n , or, in other words, a string s of length n , consistin
阅读全文
摘要:D. Power Tower time limit per test 4.5 seconds memory limit per test 256 megabytes input standard input output standard output Priests of the Quetzalc
阅读全文
摘要:Psychos in a Line "CodeForces 319B " There are n psychos standing in a line. Each psycho is assigned a unique integer from 1 to n . At each step every
阅读全文
摘要:Mike is the president of country What The Fatherland. There are n bears living in this country besides Mike. All of them are standing in a line and th
阅读全文
摘要:Oleg the client and Igor the analyst are good friends. However, sometimes they argue over little things. Recently, they started a new company, but the
阅读全文
摘要:You are given two rectangles on a plane. The centers of both rectangles are located in the origin of coordinates (meaning the center of the rectangle'
阅读全文
摘要:Bike loves looking for the second maximum element in the sequence. The second maximum element in the sequence of distinct numbers x1, x2, ..., xk (k 1
阅读全文

浙公网安备 33010602011771号