博客园 - qscqeszeuuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=28412022-03-24T03:01:12Zqscqeszehttps://www.cnblogs.com/qscqesze/feed.cnblogs.comhttps://www.cnblogs.com/qscqesze/p/16048742.html分享最近做的一个中文 wordle 的游戏《词影》 - qscqesze一款将象形汉字同 Wordle 猜测结合起来的猜成语小游戏 ——《词影》 目前还在内测中,欢迎大家试玩,还望各位拍砖 Orz 游戏关键词 类 wordle 象形文字 每天十局 体验地址 扫描下方二维码,或者打开链接 https://cy.surprising.studio 即可体验2022-03-24T03:01:00Z2022-03-24T03:01:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】一款将象形汉字同 Wordle 猜测结合起来的猜成语小游戏 ——《词影》 目前还在内测中,欢迎大家试玩,还望各位拍砖 Orz 游戏关键词 类 wordle 象形文字 每天十局 体验地址 扫描下方二维码,或者打开链接 https://cy.surprising.studio 即可体验 <a href="https://www.cnblogs.com/qscqesze/p/16048742.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/15467312.html记录一下代码模版 - qscqesze该文被密码保护。2021-10-26T10:54:00Z2021-10-26T10:54:00Zqscqeszehttps://www.cnblogs.com/qscqesze/该文被密码保护。https://www.cnblogs.com/qscqesze/p/14177360.htmlCodeforces Round #691 (Div. 1) B. Glass Half Spilled 背包DP - qscqeszeB. Glass Half Spilled There are 𝑛 glasses on the table numbered 1,…,𝑛. The glass 𝑖 can hold up to 𝑎𝑖 units of water, and currently contains 𝑏𝑖 2020-12-23T02:57:00Z2020-12-23T02:57:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】B. Glass Half Spilled There are 𝑛 glasses on the table numbered 1,…,𝑛. The glass 𝑖 can hold up to 𝑎𝑖 units of water, and currently contains 𝑏𝑖 <a href="https://www.cnblogs.com/qscqesze/p/14177360.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/14157863.htmlEducational Codeforces Round 100 (Rated for Div. 2) E. Plan of Lectures 缩点+拓扑排序 - qscqeszeE. Plan of Lectures Ivan is a programming teacher. During the academic year, he plans to give 𝑛 lectures on 𝑛 different topics. Each topic should be2020-12-18T17:32:00Z2020-12-18T17:32:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】E. Plan of Lectures Ivan is a programming teacher. During the academic year, he plans to give 𝑛 lectures on 𝑛 different topics. Each topic should be <a href="https://www.cnblogs.com/qscqesze/p/14157863.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/14141873.htmlCodeforces Round #689 (Div. 2, based on Zed Code Competition) E. Water Level 贪心 - qscqeszeE. Water Level In recent years John has very successfully settled at his new job at the office. But John doesn't like to idly sit around while his cod2020-12-15T17:08:00Z2020-12-15T17:08:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】E. Water Level In recent years John has very successfully settled at his new job at the office. But John doesn't like to idly sit around while his cod <a href="https://www.cnblogs.com/qscqesze/p/14141873.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/14135708.htmlCodeforces Round #687 (Div. 1, based on Technocup 2021 Elimination Round 2) D - Cakes for Clones DP - qscqeszeD. Cakes for Clones You live on a number line. You are initially (at time moment 𝑡=0) located at point 𝑥=0. There are 𝑛 events of the following typ2020-12-14T13:07:00Z2020-12-14T13:07:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】D. Cakes for Clones You live on a number line. You are initially (at time moment 𝑡=0) located at point 𝑥=0. There are 𝑛 events of the following typ <a href="https://www.cnblogs.com/qscqesze/p/14135708.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/14044452.html一次 java.util.ConcurrentModificationException 问题的fix - qscqesze其他写的比较好的文章:https://www.cnblogs.com/snowater/p/8024776.html 我在一次多线程读写map的时候,然后再遍历的时候也遇到了该问题。 现场代码 private ConcurrentHashMap<Long, Set<Long>> m = new Co2020-11-26T12:44:00Z2020-11-26T12:44:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】其他写的比较好的文章:https://www.cnblogs.com/snowater/p/8024776.html 我在一次多线程读写map的时候,然后再遍历的时候也遇到了该问题。 现场代码 private ConcurrentHashMap<Long, Set<Long>> m = new Co <a href="https://www.cnblogs.com/qscqesze/p/14044452.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/13920110.html论文略读:阿里智能算力引擎DCAF(DLP-KDD 20) - qscqeszeDCAF: A Dynamic Computation Allocation Framework for Online Serving System 论文地址:https://arxiv.org/pdf/2006.09684.pdf 来源:DLP-KDD 2020 阿里巴巴论文 摘要 现代大规模在线2020-11-03T06:32:00Z2020-11-03T06:32:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】DCAF: A Dynamic Computation Allocation Framework for Online Serving System 论文地址:https://arxiv.org/pdf/2006.09684.pdf 来源:DLP-KDD 2020 阿里巴巴论文 摘要 现代大规模在线 <a href="https://www.cnblogs.com/qscqesze/p/13920110.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12640169.html《冒险岛历史》路西德的前世今生 - qscqesze路西德的过去 路西德属于精灵族,诞生于埃欧雷,埃欧雷是精灵王国,埃欧雷在魔法密林的旁边。她与赫丽娜(射手村弓箭手的转职教官)是童年的伙伴,既是朋友,也是竞争对手。 当时埃欧雷的女王是双弩精灵,双弩精灵的名字叫做梅赛德斯。路西德小时候特别希望得到女王双弩精灵的赞赏,为此她和赫丽娜一直在暗中较劲。然而路2020-04-05T16:34:00Z2020-04-05T16:34:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】路西德的过去 路西德属于精灵族,诞生于埃欧雷,埃欧雷是精灵王国,埃欧雷在魔法密林的旁边。她与赫丽娜(射手村弓箭手的转职教官)是童年的伙伴,既是朋友,也是竞争对手。 当时埃欧雷的女王是双弩精灵,双弩精灵的名字叫做梅赛德斯。路西德小时候特别希望得到女王双弩精灵的赞赏,为此她和赫丽娜一直在暗中较劲。然而路 <a href="https://www.cnblogs.com/qscqesze/p/12640169.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12355197.html看错题系列 cf622C C2. Skyscrapers (hard version) - qscqesze看错题系列 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,2020-02-23T15:53:00Z2020-02-23T15:53:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】看错题系列 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, <a href="https://www.cnblogs.com/qscqesze/p/12355197.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12256988.htmlCodeforces Round #616 (Div. 2) F. Coffee Varieties 交互题 - qscqeszeF. 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 vers2020-02-03T11:47:00Z2020-02-03T11:47:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】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 <a href="https://www.cnblogs.com/qscqesze/p/12256988.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12256919.htmlCodeforces Round #616 (Div. 2) E. Prefix Enlightenment 图论 - qscqeszeE. 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 ha2020-02-03T11:37:00Z2020-02-03T11:37:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】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 <a href="https://www.cnblogs.com/qscqesze/p/12256919.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12256902.htmlCodeforces Round #616 (Div. 2) D. Irreducible Anagrams 找规律 - qscqeszeD. 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 is2020-02-03T11:31:00Z2020-02-03T11:31:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】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 <a href="https://www.cnblogs.com/qscqesze/p/12256902.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12256868.htmlCodeforces Round #616 (Div. 2) C. Mind Control 博弈论 枚举 - qscqeszeC. 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. Yo2020-02-03T11:23:00Z2020-02-03T11:23:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】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 <a href="https://www.cnblogs.com/qscqesze/p/12256868.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12256827.html Codeforces Round #616 (Div. 2) B. Array Sharpening 水题 - qscqeszeB. 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 cal2020-02-03T11:12:00Z2020-02-03T11:12:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】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 <a href="https://www.cnblogs.com/qscqesze/p/12256827.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12256806.htmlCodeforces Round #616 (Div. 2) A Even But Not Even 水题 - qscqeszeA. 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 2020-02-03T11:08:00Z2020-02-03T11:08:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】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 <a href="https://www.cnblogs.com/qscqesze/p/12256806.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12193564.html《重构:改善既有代码的设计》 读书笔记 第三章 - qscqesze第三章 代码的坏味道 3.1 神秘命名 命名是编程中很难的事情,所以最常用的重构手段就是去改个名字。 如果你发现改名很难,那就说明代码设计有问题。 3.2 重复代码 同一类的两个函数含有相同的表达式,就应该提炼。 3.3 过长函数 活得最长,最好的函数,一般都很短。 如果你觉得需要写注释,大部分情况2020-01-14T10:45:00Z2020-01-14T10:45:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】第三章 代码的坏味道 3.1 神秘命名 命名是编程中很难的事情,所以最常用的重构手段就是去改个名字。 如果你发现改名很难,那就说明代码设计有问题。 3.2 重复代码 同一类的两个函数含有相同的表达式,就应该提炼。 3.3 过长函数 活得最长,最好的函数,一般都很短。 如果你觉得需要写注释,大部分情况 <a href="https://www.cnblogs.com/qscqesze/p/12193564.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12193483.html《重构:改善既有代码的设计》 读书笔记 第二章 - qscqesze第二章 重构的原则 2.1 何谓重构 重构分为了动词和名词两种意义。 重构(名词):对软件内部结构的一种调整,目的是不改变软件可观察行为的前提下,提高其可理解性,降低修改成本。 (问题来了,重构真的降低了可理解性吗) 重构(动词):使用一系列重构首发,在不改变软件可观察行为的前提下,调整其结构。 重2020-01-14T10:19:00Z2020-01-14T10:19:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】第二章 重构的原则 2.1 何谓重构 重构分为了动词和名词两种意义。 重构(名词):对软件内部结构的一种调整,目的是不改变软件可观察行为的前提下,提高其可理解性,降低修改成本。 (问题来了,重构真的降低了可理解性吗) 重构(动词):使用一系列重构首发,在不改变软件可观察行为的前提下,调整其结构。 重 <a href="https://www.cnblogs.com/qscqesze/p/12193483.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12192781.htmlQSC的算法讲座第三季开始啦 - qscqesze我的B站主页:https://space.bilibili.com/611212 我的微信公众号:QSC的算法讲堂 我的QQ群:728615719 我的知乎:qscqesze 【背景】 我已经毕业两年了,正所谓金三银四,现在正是刷题跳槽的好时节。 上周同组的兄弟也讲了一下做自媒体的好处,所以我也开始2020-01-14T08:40:00Z2020-01-14T08:40:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】我的B站主页:https://space.bilibili.com/611212 我的微信公众号:QSC的算法讲堂 我的QQ群:728615719 我的知乎:qscqesze 【背景】 我已经毕业两年了,正所谓金三银四,现在正是刷题跳槽的好时节。 上周同组的兄弟也讲了一下做自媒体的好处,所以我也开始 <a href="https://www.cnblogs.com/qscqesze/p/12192781.html" target="_blank">阅读全文</a>https://www.cnblogs.com/qscqesze/p/12192764.html《重构:改善既有代码的设计》 读书笔记 第一章 - qscqesze链接: https://pan.baidu.com/s/1b3cTGmABb66zeCV 5DY LQ 提取码: 6a9n 里面存在的个人观点,我都会用斜体来表示。 重要的结论,我会用粗体表示。 序言 开篇讲了一个故事,说一个顾问建议一个团队去重构,重构使得代码变得更美了,但重构花费了时间,并没有新2020-01-14T08:39:00Z2020-01-14T08:39:00Zqscqeszehttps://www.cnblogs.com/qscqesze/【摘要】链接: https://pan.baidu.com/s/1b3cTGmABb66zeCV 5DY LQ 提取码: 6a9n 里面存在的个人观点,我都会用斜体来表示。 重要的结论,我会用粗体表示。 序言 开篇讲了一个故事,说一个顾问建议一个团队去重构,重构使得代码变得更美了,但重构花费了时间,并没有新 <a href="https://www.cnblogs.com/qscqesze/p/12192764.html" target="_blank">阅读全文</a>