Given an array of integers arr. We want to select three indices i, j and k where (0 <= i < j <= k < arr.length). Let's define a and b as follows: a = ...
分类:
其他好文 时间:
2020-05-12 09:30:41
阅读次数:
59
```#include#include#include#include#define rint register intusing namespace std;typedef long long ll;int mod,a[20];ll l,r,dp[19][163][163];inline ll d... ...
分类:
其他好文 时间:
2020-05-11 20:23:46
阅读次数:
65
题目 You are given a positive integer N(1≦N≦1e18). Find the number of the pairs of integers u and v(0≦u,v≦N) such that there exist two non-negative inte ...
分类:
其他好文 时间:
2020-05-11 13:07:17
阅读次数:
68
```cpp #include #include #include #include #include using namespace std; #define R register #define LL long long const int inf=0x3f3f3f3f; const int M... ...
分类:
其他好文 时间:
2020-05-11 11:43:39
阅读次数:
47
1、使用高版本的 Webpack 和 Node.js 2、多进程/多实例构建:HappyPack(不维护了)、thread-loader 3、压缩代码 webpack-paralle-uglify-plugin uglifyjs-webpack-plugin 开启 parallel 参数 (不支持E ...
分类:
Web程序 时间:
2020-05-10 22:59:18
阅读次数:
180
it's fine to use shell script to get job done username='pat' wget -N -O "github_user.list" "https://api.github.com/users/${username}/repos?per_page=10 ...
分类:
其他好文 时间:
2020-05-10 19:40:06
阅读次数:
82
[TOC] https://codeforces.com/contest/1352 本题解 $+$ 熔岩 $=$ 黑曜石 E. Special Elements 一看 $n=8000$,就搞个 $O(n^2)$ 水过吧 先记录 $cnt[i]=(\ i$ 在数列 $a$ 中的出现次数 $)$,然后遍 ...
分类:
其他好文 时间:
2020-05-10 00:55:32
阅读次数:
65
可能大家都没理解这题的意思,翻译和原文都比较含糊,我来用人话说一遍: 有 $n$ 个人一起去买披萨。披萨店有两种披萨,每种的每个披萨都可以分成 $s$ 片。每个人买不同数量的披萨(以片为单位),不同的人买不同种类的披萨所获得的快乐值不同。问在买披萨数量最小的情况下,如何分配买 1 号披萨和 2 号披 ...
分类:
其他好文 时间:
2020-05-09 20:59:24
阅读次数:
51
介绍 狭义的来讲,前端指的就是我们常说的html, css, javascript. 三者必不可缺. 而其中涵盖的知识点不可一篇文章就能完整的讲述出来的。广义的定位,涉及到浏览器,手机App里面的用户交互展示的内容,都属于前端。 知识点 HTML CSS 布局(流式布局, 栅格布局,弹性布局) CS ...
分类:
其他好文 时间:
2020-05-09 20:57:49
阅读次数:
67