![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
文章平均质量分 79
cloudy_happy
像我这样优秀的人,不该平凡过一生
展开
-
Codeforces Round #511 (Div. 2) A、B、C
A: Little C Loves 3 I time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little C loves number «3» very much. He loves all things ab...原创 2018-09-22 19:29:03 · 264 阅读 · 0 评论 -
Codeforces Round #529 (Div. 3) C
C. Powers Of Two time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output A positive integer xx is called a power of two if it can be repr...原创 2019-01-07 21:38:18 · 197 阅读 · 0 评论 -
codeforces Hello 2019 C
C. Yuhao and a Parenthesis time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day, Yuhao came across a problem about checking if...原创 2019-01-07 18:21:12 · 211 阅读 · 0 评论 -
CodeForces - 723D Lakes in Berland dfs
Lakes in Berland CodeForces - 723D The map of Berland is a rectangle of the size n × m, which consists of cells of size 1 × 1. Each cell is either land or water. The map is surrounded by the oce...原创 2018-11-23 12:30:31 · 167 阅读 · 0 评论 -
Codeforces Round #515 (Div. 3) A、B、C、D
A. Vova and Train time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vova plans to go to the conference by train. Initially, the trai...原创 2018-10-17 22:51:00 · 250 阅读 · 0 评论 -
CodeForces Bubble Cup 11 - Finals [Online Mirror, Div. 2] F题
Splitting money time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output After finding and moving to the new planet that supports human lif...原创 2018-09-23 10:47:18 · 272 阅读 · 0 评论 -
codeforces977C Less or Equal
小于等于 CodeForces - 977C 给你一个长度为n的整数序列和一个数k。 您应该在[1; 1e9](即1≤x≤1e9)的范围内输出任何整数x,使得给定序列的k个元素恰好小于或等于x。 请注意,该序列可以包含相同的元素。 如果没有这样的x,则输出“-1”(不含引号)Input第一行为n和k(1 <= n <= 2e5,0 <= k <= n),第二行包含n个整数。...原创 2018-05-20 22:35:40 · 278 阅读 · 0 评论 -
CodeForces - 233B Non-square Equation
有如下方程: x2 + s(x)·x - n = 0, 其中x, n是正整数, s(x) 是函数, 等于十进制数中x 的位数之和. 明明有一个整数 n, 请你帮明明找到方程x最小的正整数根,或者确定没有这样的根. Input 第一行包含整数n (1 ≤ n ≤ 1018),是方程参数 请不要使用%lld 读入. 推荐使用 cin, cout 流或 %I64d Output 输出 ...原创 2018-06-04 18:55:27 · 120 阅读 · 0 评论 -
codeforces #498-C Three Parts of the Array
time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an array d1,d2,…,dnd1,d2,…,dn consisting of nn integer numbers. Your...原创 2018-07-17 22:48:11 · 151 阅读 · 0 评论 -
codeforces #496-C Summarize to the Power of Two
C. Summarize to the Power of Two A sequence a1,a2,…,ana1,a2,…,an is called good if, for each element aiai, there exists an element ajaj...原创 2018-07-17 22:52:33 · 186 阅读 · 0 评论 -
codeforces 510BFox And Two Dots 深搜dfs
Fox And Two Dots CodeForces - 510B 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 th...原创 2018-08-01 23:43:02 · 134 阅读 · 0 评论 -
codeforces 998-Cvacations 思路题
. Vacations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya has n days of vacations! So he decided to improve his IT skills ...原创 2018-08-02 20:55:15 · 158 阅读 · 0 评论 -
codeforces 559B Equivalent Strings 分治归并
Equivalent Strings Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in one of the two cases: They ...原创 2018-08-05 09:08:41 · 146 阅读 · 0 评论 -
codeforces Round div3 D题 Polycarp and Div 3 思考
Polycarp and Div 3 Polycarp likes numbers that are divisible by 3. He has a huge number ss. Polycarp wants to cut from it the maximum number of numbers that are divisible by 33. To do this, he makes...原创 2018-08-11 23:19:06 · 173 阅读 · 0 评论 -
codeforces895A Pizza Separation 思维
Pizza Separation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Students Vasya and Petya are studying at the BSU (Byteland State University)....原创 2018-08-19 22:41:14 · 158 阅读 · 0 评论 -
codeforces 1041C Coffee Break
Coffee Break time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recently Monocarp got a job. His working day lasts exactly mm minute...原创 2018-09-17 18:35:16 · 595 阅读 · 2 评论 -
codeforces Round574 C、D1
C题: 简单dp 我们令dp[ i ][ j ]表示在选择第i列第 j ( j为0或 1代表两行)行元素的情况下当前的最大高度,那么他一定是从dp[ i-1 ][ ! j ]或 dp[ i - 2 ][ ! j ]得到的;试想,对于9 3 5 7 3元素7,我们如果选择7的话,那么它一定是从元素1或是8的位置得到的,以为相邻 ...原创 2019-07-18 18:46:09 · 129 阅读 · 0 评论