定义 定义虽然基本没有屌用,因为大部分人都看不懂,但是还的说出来。。。 The intent of the Builder design pattern is to separate the construction of a complex object from its representati ...
分类:
其他好文 时间:
2021-01-12 10:43:10
阅读次数:
0
c++ 常用头文件 输入输出 #include <ios> //基本输入/输出支持#include <iostream> //数据流输入/输出#include <istream> //基本输入流#include <ostream> //基本输出流#include <fstream> //文件输入/输 ...
分类:
其他好文 时间:
2021-01-11 11:18:18
阅读次数:
0
实现一个栈,栈初始为空,支持四种操作: (1) “push x” – 向栈顶插入一个数x; (2) “pop” – 从栈顶弹出一个数; (3) “empty” – 判断栈是否为空; (4) “query” – 查询栈顶元素。 现在要对栈进行M个操作,其中的每个操作3和操作4都要 #include<b ...
A. Cards for Friends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output For the New Year, Po ...
分类:
其他好文 时间:
2021-01-08 11:28:07
阅读次数:
0
P3769 [CH弱省胡策R2]TATT cdq分治只会板子就来自己yy cdq套cdq的题(虽然也是板子)。被kdt吊打了2倍常数。不过没有确定出题人是否卡满了kdt,等会我去卡卡。 能自己yy出做法非常高兴,然后因为一个sb错误调了2h 首先按照第一维排序。然后仿照最长上升子序列定义状态:\(d ...
分类:
其他好文 时间:
2021-01-07 12:33:44
阅读次数:
0
题目 题目链接:https://atcoder.jp/contests/agc023/tasks/agc023_d 一条街上有 \(N\) 栋楼,位置从小到大分别在 \(X_1, X_2, \ldots , X_N\)。 在位置 \(S\) 有一座公司,员工下班时乘坐公司的员工班车回家。 这些员工住 ...
分类:
其他好文 时间:
2021-01-06 12:21:52
阅读次数:
0
#include <string.h> #include <stdarg.h> #include <stdio.h> #include <limits.h> #include <stdio.h> #define CONFIG_DIR "/etc/usbs/" int main() { FILE *f ...
分类:
其他好文 时间:
2021-01-05 11:25:23
阅读次数:
0
原题链接 KMP+标准化+最大最小表示法 错误思路: 看到这题的第一反应是破环成链思想,枚举它能循环得到的字符串...算了下时间复杂度大概率TLE,看了别人的提示才反应过来是标准化... 正确思路: 像这种一种表示多种形态的字符串大概率用标准化了,我们用最小最大表示法求最大或最小值,用set或map ...
分类:
其他好文 时间:
2021-01-05 10:48:42
阅读次数:
0
2020-12-30 02:07:45.802 15260-15260/com.uudon.enation E/AndroidRuntime: FATAL EXCEPTION: main Process: com.uudon.enation, PID: 15260 java.lang.NoSuchM ...
分类:
编程语言 时间:
2021-01-04 10:32:44
阅读次数:
0
fn consume_with_relish<F>(mut func: F) where F: FnMut() -> String { // `func` consumes its captured variables, so it cannot be run more // than once p ...
分类:
其他好文 时间:
2021-01-02 11:07:10
阅读次数:
0