码迷,mamicode.com
首页 >  
搜索关键字:fine    ( 5966个结果
「UVA 1608」 Non-boring sequences
Description 如果一个序列的任意连续子序列都至少有一个元素唯一,则称这个序列“不无聊”,否则称这个序列“无聊”。给定 $T$ 个序列 $a$,长度为 $n$,求是否“无聊”。 Hint $1\le n\le 2\times 10^5$ $1\le \text{元素大小}\le 10^9$ ...
分类:其他好文   时间:2020-05-12 11:38:32    阅读次数:52
[LeetCode] 1442. Count Triplets That Can Form Two Arrays of Equal XOR
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
luogu P4127 [AHOI2009]同类分布 数位dp
```#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
FFT板子
```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
优化 Webpack 的构建速度
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
Automatically download a user's repository Github
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
rsync客户端一键安装rsync脚本(源码)
客户端 read ...
分类:其他好文   时间:2020-05-10 10:58:48    阅读次数:71
Codeforces Round #640 (Div. 4) 题解 (EFG)
[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
题解 CF865B 【Ordering Pizza】
可能大家都没理解这题的意思,翻译和原文都比较含糊,我来用人话说一遍: 有 $n$ 个人一起去买披萨。披萨店有两种披萨,每种的每个披萨都可以分成 $s$ 片。每个人买不同数量的披萨(以片为单位),不同的人买不同种类的披萨所获得的快乐值不同。问在买披萨数量最小的情况下,如何分配买 1 号披萨和 2 号披 ...
分类:其他好文   时间:2020-05-09 20:59:24    阅读次数:51
5966条   上一页 1 ... 39 40 41 42 43 ... 597 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!