
codeforces
文章平均质量分 84
cloudy_happy
像我这样优秀的人,不该平凡过一生
展开
-
Codeforces Round #511 (Div. 2) A、B、C
A:Little C Loves 3 Itime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle C loves number «3» very much. He loves all things ab...原创 2018-09-22 19:29:03 · 312 阅读 · 0 评论 -
Codeforces Round #529 (Div. 3) C
C. Powers Of Twotime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA positive integer xx is called a power of two if it can be repr...原创 2019-01-07 21:38:18 · 232 阅读 · 0 评论 -
codeforces Hello 2019 C
C. Yuhao and a Parenthesistime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day, Yuhao came across a problem about checking if...原创 2019-01-07 18:21:12 · 268 阅读 · 0 评论 -
CodeForces - 723D Lakes in Berland dfs
Lakes in Berland CodeForces - 723DThe 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 · 225 阅读 · 0 评论 -
Codeforces Round #515 (Div. 3) A、B、C、D
A. Vova and Traintime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVova plans to go to the conference by train. Initially, the trai...原创 2018-10-17 22:51:00 · 305 阅读 · 0 评论 -
CodeForces Bubble Cup 11 - Finals [Online Mirror, Div. 2] F题
Splitting moneytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter finding and moving to the new planet that supports human lif...原创 2018-09-23 10:47:18 · 306 阅读 · 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 · 360 阅读 · 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 流或 %I64dOutput输出 ...原创 2018-06-04 18:55:27 · 148 阅读 · 0 评论 -
codeforces #498-C Three Parts of the Array
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array d1,d2,…,dnd1,d2,…,dn consisting of nn integer numbers.Your...原创 2018-07-17 22:48:11 · 196 阅读 · 0 评论 -
codeforces #496-C Summarize to the Power of Two
C. Summarize to the Power of TwoA 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 · 252 阅读 · 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 · 186 阅读 · 0 评论 -
codeforces 998-Cvacations 思路题
. Vacationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n days of vacations! So he decided to improve his IT skills ...原创 2018-08-02 20:55:15 · 203 阅读 · 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 · 191 阅读 · 0 评论 -
codeforces Round div3 D题 Polycarp and Div 3 思考
Polycarp and Div 3Polycarp 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 · 233 阅读 · 0 评论 -
codeforces895A Pizza Separation 思维
Pizza Separationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputStudents Vasya and Petya are studying at the BSU (Byteland State University)....原创 2018-08-19 22:41:14 · 205 阅读 · 0 评论 -
codeforces 1041C Coffee Break
Coffee Breaktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently Monocarp got a job. His working day lasts exactly mm minute...原创 2018-09-17 18:35:16 · 644 阅读 · 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 · 162 阅读 · 0 评论