摘要:BerOS File Suggestion(stl-map应用) Polycarp is working on a new operating system called BerOS. He asks you to help with implementation of a file suggest
阅读全文
摘要:Garbage Disposal Description Enough is enough. Too many times it happened that Vasya forgot to dispose of garbage and his apartment stank afterwards.
阅读全文
摘要:D - Garbage Disposal Description Enough is enough. Too many times it happened that Vasya forgot to dispose of garbage and his apartment stank afterwar
阅读全文
摘要:Adjacent Bit Counts 4557 Adjacent Bit CountsFor a string of n bits x 1 , x 2 , x 3 ,..., x n , the adjacent bit count of the string (AdjBC(x)) is give
阅读全文
摘要:4554 BallsThe classic Two Glass Balls brain-teaser is often posed as:“Given two identical glass spheres, you would like to determine the lowest floor
阅读全文
摘要:Monday_ 今晚补了扔鸡蛋问题的动态规划问题,补了这道题,感觉视野又开阔了些。 写了一道思维题cf 1066A 数字逻辑后半节听得打脑壳,现在很晚了,明天再看叭。 Tuesday_ 今晚补了 adjacent bit counts这道题 也是一道动归的题,不得不说,动态规划真的很神奇,还是要多练
阅读全文
摘要:E(动态规划扔鸡蛋) 4554 BallsThe classic Two Glass Balls brain-teaser is often posed as:“Given two identical glass spheres, you would like to determine the lo
阅读全文
摘要:A - Complete the Word(暴力) Description ZS the Coder loves to read the dictionary. He thinks that a word is nice if there exists a substring (contiguous
阅读全文
摘要:electronic a.电子的 heist v.抢劫 in ascending order 升序 indice n.标记 device n.装置设备 staff n.职员 in arbitrary order 任意顺序 pairwise distinct两两相异 题意就是:一个电子商品店被抢劫了,
阅读全文
摘要:函数变量尽可能置于最小作用域内,并在变量声明时进行初始化 变量声明的位置最好离第一次使用的位置越近越好;应使用初始化的方式代替声明再赋值。 int x=0; rather than int x; x=0; // vector<>int v={1,2}; rather than vector<int>
阅读全文
摘要:A - A codeforces 714A Description Today an outstanding event is going to happen in the forest — hedgehog Filya will come to his old fried Sonya! Sonya
阅读全文
摘要:A - ACodeForces 1060A Description Let's call a string a phone number if it has length 11 and fits the pattern "8xxxxxxxxxx", where each "x" is replace
阅读全文
摘要:A - A 这题很巧妙啊,前两天刚好做过,而且就在博客里 Little C Loves 3 I time limit per test 1 second memory limit per test 256 megabytes input standard input output standard
阅读全文
摘要:A - A CodeForces - 1042A There are nn benches in the Berland Central park. It is known that aiai people are currently sitting on the ii-th bench. Anot
阅读全文
摘要:A.codeforces1038A You are given a string ss of length nn, which consists only of the first kk letters of the Latin alphabet. All letters in string ss
阅读全文
摘要:B. Cover Points time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Cover Points time limi
阅读全文
摘要:A. Little C Loves 3 I time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Little C Loves 3
阅读全文
摘要:A - Turn the Rectangles CodeForces - 1008B There are nn rectangles in a row. You can either turn each rectangle by 9090 degrees or leave it as it is.
阅读全文