qscqesze
Published on 2017-09-02 11:31 in 暂未分类 with qscqesze
摘要:我的B站主页:https://space.bilibili.com/611212 内有视频题解 阅读全文
posted @ 2020-01-14 16:40 qscqesze 阅读 (612) 评论 (1) 编辑
摘要:我是qscqesze,大家可以叫我qsc 名字是随便乱打出来的,如果强行说一个理由的话:这几个字符在键盘上是一个X形状。 现在是一名算法工程师,机器学习方向,工作日常是洗数据。 每天都在思考自己为什么还没被公司开除。。。 热爱ACM竞赛,但是自己头脑愚笨,又爱偷懒,所以就只能切切水题,或者站在大神后 阅读全文
posted @ 2015-05-13 20:07 qscqesze 阅读 (5576) 评论 (12) 编辑
摘要:看错题系列 cf622C C2. Skyscrapers (hard version) 看成了 对于所有的i不能满足a[i 1] a[i]&&a[i] using namespace std; const int maxn = 5e5+7; int n,m[maxn]; long long ans, 阅读全文
posted @ 2020-02-23 23:53 qscqesze 阅读 (189) 评论 (0) 编辑
摘要:F. Coffee Varieties time limit per test1 second memory limit per test256 megabytes This is the easy version of the problem. You can find the hard vers 阅读全文
posted @ 2020-02-03 19:47 qscqesze 阅读 (187) 评论 (0) 编辑
摘要:E. Prefix Enlightenment time limit per test3 seconds memory limit per test256 megabytes There are n lamps on a line, numbered from 1 to n. Each one ha 阅读全文
posted @ 2020-02-03 19:37 qscqesze 阅读 (252) 评论 (0) 编辑
摘要:D. Irreducible Anagrams time limit per test2 seconds memory limit per test256 megabytes Let's call two strings s and t anagrams of each other if it is 阅读全文
posted @ 2020-02-03 19:31 qscqesze 阅读 (129) 评论 (1) 编辑
摘要:C. Mind Control time limit per test1 second memory limit per test256 megabytes You and your n−1 friends have found an array of integers a1,a2,…,an. Yo 阅读全文
posted @ 2020-02-03 19:23 qscqesze 阅读 (199) 评论 (4) 编辑
摘要:B. Array Sharpening time limit per test1 second memory limit per test256 megabytes You're given an array a1,…,an of n non negative integers. Let's cal 阅读全文
posted @ 2020-02-03 19:12 qscqesze 阅读 (75) 评论 (0) 编辑
摘要:A. Even But Not Even time limit per test1 second memory limit per test256 megabytes Let's define a number ebne (even but not even) if and only if its 阅读全文
posted @ 2020-02-03 19:08 qscqesze 阅读 (74) 评论 (0) 编辑
摘要:第三章 代码的坏味道 3.1 神秘命名 命名是编程中很难的事情,所以最常用的重构手段就是去改个名字。 如果你发现改名很难,那就说明代码设计有问题。 3.2 重复代码 同一类的两个函数含有相同的表达式,就应该提炼。 3.3 过长函数 活得最长,最好的函数,一般都很短。 如果你觉得需要写注释,大部分情况 阅读全文
posted @ 2020-01-14 18:45 qscqesze 阅读 (77) 评论 (0) 编辑
摘要:第二章 重构的原则 2.1 何谓重构 重构分为了动词和名词两种意义。 重构(名词):对软件内部结构的一种调整,目的是不改变软件可观察行为的前提下,提高其可理解性,降低修改成本。 (问题来了,重构真的降低了可理解性吗) 重构(动词):使用一系列重构首发,在不改变软件可观察行为的前提下,调整其结构。 重 阅读全文
posted @ 2020-01-14 18:19 qscqesze 阅读 (68) 评论 (0) 编辑
摘要:我的B站主页:https://space.bilibili.com/611212 内有视频题解 阅读全文
posted @ 2020-01-14 16:40 qscqesze 阅读 (612) 评论 (1) 编辑
摘要:链接: https://pan.baidu.com/s/1b3cTGmABb66zeCV 5DY LQ 提取码: 6a9n 里面存在的个人观点,我都会用斜体来表示。 重要的结论,我会用粗体表示。 序言 开篇讲了一个故事,说一个顾问建议一个团队去重构,重构使得代码变得更美了,但重构花费了时间,并没有新 阅读全文
posted @ 2020-01-14 16:39 qscqesze 阅读 (60) 评论 (0) 编辑
摘要:F. Economic Difficulties An electrical grid in Berland palaces consists of 2 grids: main and reserve. Wires in palaces are made of expensive material, 阅读全文
posted @ 2019-11-30 11:43 qscqesze 阅读 (353) 评论 (0) 编辑
摘要:E. Editor The development of a text editor is a hard problem. You need to implement an extra module for brackets coloring in text. Your editor consist 阅读全文
posted @ 2019-11-30 11:38 qscqesze 阅读 (274) 评论 (0) 编辑
摘要:D. Secret Passwords One unknown hacker wants to get the admin's password of AtForces testing system, to get problems from the next contest. To achieve 阅读全文
posted @ 2019-11-30 11:33 qscqesze 阅读 (233) 评论 (0) 编辑
摘要:C. Everyone is a Winner! On the well known testing system MathForces, a draw of n rating units is arranged. The rating will be distributed according t 阅读全文
posted @ 2019-11-30 11:30 qscqesze 阅读 (257) 评论 (0) 编辑
摘要:B. PIN Codes A PIN code is a string that consists of exactly 4 digits. Examples of possible PIN codes: 7013, 0000 and 0990. Please note that the PIN c 阅读全文
posted @ 2019-11-30 11:26 qscqesze 阅读 (225) 评论 (0) 编辑
摘要:A. Sweet Problem the first pile contains only red candies and there are r candies in it, the second pile contains only green candies and there are g c 阅读全文
posted @ 2019-11-30 11:23 qscqesze 阅读 (180) 评论 (0) 编辑
摘要:F2. Wrong Answer on test 233 (Hard Version) Your program fails again. This time it gets "Wrong answer on test 233" . This is the harder version of the 阅读全文
posted @ 2019-11-24 23:26 qscqesze 阅读 (215) 评论 (0) 编辑
摘要:E. Arson In Berland Forest The Berland Forest can be represented as an infinite cell plane. Every cell contains a tree. That is, contained before the 阅读全文
posted @ 2019-11-24 23:17 qscqesze 阅读 (165) 评论 (0) 编辑
摘要:D2. Optimal Subsequences (Hard Version) This is the harder version of the problem. In this version, 1≤n,m≤2⋅105. You can hack this problem if you lock 阅读全文
posted @ 2019-11-24 23:11 qscqesze 阅读 (97) 评论 (0) 编辑
摘要:C. Messy You are fed up with your messy room, so you decided to clean it up. Your room is a bracket sequence s=s1s2…sn of length n. Each character of 阅读全文
posted @ 2019-11-24 23:07 qscqesze 阅读 (140) 评论 (0) 编辑
摘要:B. Box Permutation p is a sequence of integers p=[p1,p2,…,pn], consisting of n distinct (unique) positive integers between 1 and n, inclusive. For exa 阅读全文
posted @ 2019-11-24 23:02 qscqesze 阅读 (86) 评论 (0) 编辑
摘要:A. Math Problem Your math teacher gave you the following problem: There are n segments on the x axis, [l1;r1],[l2;r2],…,[ln;rn]. The segment [l;r] inc 阅读全文
posted @ 2019-11-24 22:59 qscqesze 阅读 (113) 评论 (0) 编辑
摘要:E. The Contest A team of three programmers is going to play a contest. The contest consists of 𝑛 problems, numbered from 1 to 𝑛. Each problem is pri 阅读全文
posted @ 2019-11-14 19:43 qscqesze 阅读 (175) 评论 (0) 编辑
摘要:D. Yet Another Monster Killing Problem You play a computer game. In this game, you lead a party of 𝑚 heroes, and you have to clear a dungeon with 𝑛 阅读全文
posted @ 2019-11-14 19:33 qscqesze 阅读 (327) 评论 (0) 编辑
摘要:C. Dominated Subarray Let's call an array 𝑡 dominated by value 𝑣 in the next situation. At first, array 𝑡 should have at least 2 elements. Now, let 阅读全文
posted @ 2019-11-14 18:01 qscqesze 阅读 (140) 评论 (0) 编辑
摘要:B. Magic Stick Recently Petya walked in the forest and found a magic stick. Since Petya really likes numbers, the first thing he learned was spells fo 阅读全文
posted @ 2019-11-14 17:52 qscqesze 阅读 (141) 评论 (0) 编辑
摘要:A. Two Rival Students There are 𝑛 students in the row. And there are two rivalling students among them. The first one is in position 𝑎, the second i 阅读全文
posted @ 2019-11-14 17:46 qscqesze 阅读 (74) 评论 (0) 编辑
摘要:D. Catowice City In the Catowice city next weekend the cat contest will be held. However, the jury members and the contestants haven't been selected y 阅读全文
posted @ 2019-11-13 18:05 qscqesze 阅读 (73) 评论 (0) 编辑
摘要:我遇到的优秀年轻人的5个特质 (文章整理自一鸣同学在“2016今日头条Bootcamp”上对研发&产品部门应届毕业生的寄语) 大家好! 各位都非常年轻,我今天来的时候挺有压力。因为我毕业快11年了,看到你们,真是觉得“长江后浪推前浪”。 我去年参加了武汉的校招,感觉新一代年轻人的素质确实都非常好。我 阅读全文
posted @ 2019-11-13 16:36 qscqesze 阅读 (226) 评论 (1) 编辑
摘要:我本身是一个非常普通的人。 有幸在两年前通过自己算法竞赛的底子,加入了今日头条 ByteDance 公司。那时候还不叫字节跳动,单纯的只是叫做今日头条而已。那时候的抖音只有几百万dau,我们组也只有三个人而已,旗舰产品还是内涵段子呢。 我记得我刚刚加入公司,公司就组织了一次tb,让我们去大草原上去玩 阅读全文
posted @ 2019-11-13 16:14 qscqesze 阅读 (704) 评论 (4) 编辑
摘要:C. Queue in the Train There are 𝑛 seats in the train's car and there is exactly one passenger occupying every seat. The seats are numbered from 1 to 阅读全文
posted @ 2019-11-13 11:47 qscqesze 阅读 (66) 评论 (1) 编辑
摘要:D2. The World Is Just a Programming Task (Hard Version) This is a harder version of the problem. In this version, 𝑛≤300000. Vasya is an experienced d 阅读全文
posted @ 2019-11-12 18:15 qscqesze 阅读 (105) 评论 (1) 编辑
摘要:B. Grow The Tree Gardener Alexey teaches competitive programming to high school students. To congratulate Alexey on the Teacher's Day, the students ha 阅读全文
posted @ 2019-11-12 16:08 qscqesze 阅读 (68) 评论 (0) 编辑
摘要:A. Integer Points DLS and JLS are bored with a Math lesson. In order to entertain themselves, DLS took a sheet of paper and drew 𝑛 distinct lines, gi 阅读全文
posted @ 2019-11-12 15:35 qscqesze 阅读 (46) 评论 (0) 编辑
摘要:A. Ivan the Fool and the Probability Theory Recently Ivan the Fool decided to become smarter and study the probability theory. He thinks that he under 阅读全文
posted @ 2019-11-12 14:41 qscqesze 阅读 (77) 评论 (0) 编辑
摘要:E. Connected Components? You are given an undirected graph consisting of n vertices and edges. Instead of giving you the edges that exist in the graph 阅读全文
posted @ 2019-11-07 18:26 qscqesze 阅读 (57) 评论 (0) 编辑
摘要:C. Sum Balance Ujan has a lot of numbers in his boxes. He likes order and balance, so he decided to reorder the numbers. There are 𝑘 boxes numbered f 阅读全文
posted @ 2019-11-07 17:17 qscqesze 阅读 (147) 评论 (0) 编辑
摘要:D. 0 1 MST Ujan has a lot of useless stuff in his drawers, a considerable part of which are his math notebooks: it is time to sort them out. This time 阅读全文
posted @ 2019-11-07 17:08 qscqesze 阅读 (324) 评论 (0) 编辑
摘要:C. Tile Painting Ujan has been lazy lately, but now has decided to bring his yard to good shape. First, he decided to paint the path from his house to 阅读全文
posted @ 2019-11-07 16:50 qscqesze 阅读 (251) 评论 (1) 编辑