题意 给你一个数$n$,另$S(x)$表示$x$中各位数从小到大排序后的数,例如$S(120542)=12245$。 求$\sum_^n S(i)$ $1 \le n \le 10^{700}$ 传送门 思路 首先肯定是一道数位dp 考虑将某位数的贡献$x\times 10i$转化为$x$个$10i ...
分类:
其他好文 时间:
2020-07-02 21:54:30
阅读次数:
59
题目 Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off ...
分类:
其他好文 时间:
2020-07-02 19:53:26
阅读次数:
70
Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of ca ...
分类:
其他好文 时间:
2020-07-02 10:42:14
阅读次数:
53
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:
其他好文 时间:
2020-07-01 23:59:14
阅读次数:
86
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. ...
分类:
其他好文 时间:
2020-07-01 20:44:58
阅读次数:
69
//比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1, function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<str1.length){ if(str1.char ...
分类:
编程语言 时间:
2020-07-01 20:32:24
阅读次数:
61
配置文件地址: /usr/src/redmine/config/configuration.yml # = Redmine configuration file # # Each environment has its own configuration options. If you are on ...
分类:
其他好文 时间:
2020-07-01 20:11:49
阅读次数:
60
body .el-table th.gutter { display: table-cell !important } ...
分类:
其他好文 时间:
2020-07-01 17:27:20
阅读次数:
168
深度卷积生成对抗网络 Deep Convolutional Generative Adversarial Networks GANs如何工作的基本思想。可以从一些简单的,易于抽样的分布,如均匀分布或正态分布中提取样本,并将其转换成与某些数据集的分布相匹配的样本。虽然例子匹配一个二维高斯分布得到了交叉 ...
分类:
其他好文 时间:
2020-07-01 12:41:12
阅读次数:
58
const Compare = { LESS_THAN:-1, BIGGER_THAN:1 }; function defaultCompare(a,b){ if(a b){ return 0; } return a < b?Compare.LESS_THAN : Compare.BIGGER_TH ...
分类:
编程语言 时间:
2020-07-01 09:55:40
阅读次数:
104