B. Princesses and Princes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The King of Be ...
分类:
其他好文 时间:
2020-03-25 21:30:30
阅读次数:
104
错误处理以及日志 在start 方法的后面链接一个catch 方法来处理客户端的错误。output.error将错误输出到浏览器控制台。 */ /* this is here to show another alternative to start, with a catch 当连接建立的时候,可以 ...
分类:
编程语言 时间:
2020-03-23 11:09:36
阅读次数:
77
"原题链接" ~~CF 127个测试点,好评~~ 简要题意: 多组数据,问数组中是否有长度 $\geq 3$ 的回文子序列。 我们需要找到本质。 题目不让我们求这个长度,只让我们判断,这是为什么呢? 如果答案是 ,那么必然存在一个长度为 $3$ 的回文子序列。否则为 . 你想,如果原数组的最长回文序 ...
分类:
其他好文 时间:
2020-03-23 09:41:52
阅读次数:
68
"原题链接" 简要题意: 再简要一波: 每次可以把一个数增加 $2$,问最后能不能让所有数相等。(也就是抵消掉) 什么?题意变成这样子还做个啥? 你会发现,必须所有数的奇偶性都相同,才可以;反之就不可以。 这结论不用证明了,因为每次增加不会改变奇偶性的。 ...
分类:
其他好文 时间:
2020-03-23 09:29:01
阅读次数:
86
介绍依赖倒置原则的相关概念,建议reading time : 5mins 一、基本定义 依赖倒置原则(Dependence Inversion Principle,简称DIP)的原始定义是:高层模块不应该依赖低层模块,两者都应该依赖其抽象;抽象不应该依赖细节;细节应该依赖抽象。 Another me ...
分类:
其他好文 时间:
2020-03-21 16:27:02
阅读次数:
72
完整原文: "https://hongwan.xyz/archives/" 使用Jupyter可以在本地电脑直接新建和编辑linux服务器的代码,比如python和R,非常方便; 本机为:Win10 服务器:CentOS Linux release 7.3.1611 1.远程服务器安装Jupyter ...
分类:
其他好文 时间:
2020-03-17 14:15:38
阅读次数:
158
You are given some Tetris field consisting of nn columns. The initial height of the ii-th column of the field is aiai blocks. On top of these columns ...
分类:
其他好文 时间:
2020-03-14 23:53:35
阅读次数:
75
You are given an array aa consisting of nn integers. Your task is to determine if aa has some subsequence of length at least 33 that is a palindrome. ...
分类:
其他好文 时间:
2020-03-14 23:35:49
阅读次数:
96
新安装centos7后,第一次升级出现下面的错误 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:113 M RSS (535 MB VSZ) 已启动: S ...
分类:
其他好文 时间:
2020-03-14 12:54:25
阅读次数:
72