题意 设 $$f_i = \left\{\begin{matrix}1 , \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ i < k\\ \prod_{j=1}^k f_{i-j}^{b_j} \ mod \ p, \ \ \ \ \ i > k ...
分类:
其他好文 时间:
2019-09-12 13:03:03
阅读次数:
73
也叫小清新线段树,用于解决区间最值修改问题 具体可以参考jiry_2神犇的集训队论文和WC2016上的PPT 此题就作为模板好了,模板的话写法是比较精妙的 ...
分类:
其他好文 时间:
2019-09-11 19:49:48
阅读次数:
63
B. New Year's Evetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSince Grisha behaved well last y ...
分类:
其他好文 时间:
2019-09-11 19:41:04
阅读次数:
108
原文链接:https://blog.csdn.net/shijing_0214/article/details/51971734 使用python的时候,经常会遇到文本编码的问题,其中最常见的就是“'gbk' codec can't decode byte 0xad in position 12: ...
分类:
其他好文 时间:
2019-09-11 15:40:58
阅读次数:
215
Sequence: Define a Sequence to generate sequential numbers automatically example:可以在 update、select、insert语句中使用 ...
分类:
数据库 时间:
2019-09-11 11:44:33
阅读次数:
83
最长公共子序列不需要字符连续出现和字串不同 //LCS 求最长公共子串模板题 Common Subsequence 描述 A subsequence of a given sequence is the given sequence with some elements (possible none ...
分类:
其他好文 时间:
2019-09-10 23:42:15
阅读次数:
88
FasterTransformer 算子 nvidia在开源的FasterTransformer的代码中,提供tensorrt和tensorflow的自定义算子编译和py调用示例,详见 FasterTransformer.py 。但是如果使用tensorflow的自定义算子十分不方便,其batch ...
分类:
其他好文 时间:
2019-09-10 20:49:38
阅读次数:
86
"题目" 这道题目,用康托展开,时间和空间都碾压了100%的c++. 康拓展开其实就是表示一个连续序列,其实也不用连续,给定一个序列,可以很快速的按照字典序,列出所有序列。给出特定序列,快速告诉你它是按照字典序排序是第几个,给出排名,快速输出序列 https://www.cnblogs.com/da ...
分类:
其他好文 时间:
2019-09-10 00:23:40
阅读次数:
87
/* sequenceQueue.c */ /* 顺序队列 */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define MAXSIZE 100 /* 顺序循环队列数据结构 */ /* 一个圆圈,front指向队列头,r... ...
分类:
其他好文 时间:
2019-09-09 19:01:44
阅读次数:
180
/* sequenceList.c */ /* 顺序表 */ /* 线性表的顺序存储是指在内存中用地址连续的一块存储空间顺序存放线性表中的各项数据元素,用这种存储形式的线性表称为顺序表。 */ #include #include #include #define MAXSIZE 10 /* 顺序表结... ...
分类:
其他好文 时间:
2019-09-09 14:51:15
阅读次数:
81