(原创文章,谢绝转载~) 1. contravariant transformation,中文为逆变或反变, 设向量空间两组基: $X_{i}$ 和 $Y_{i}$ , 并且前组基到后组基的过渡矩阵为 $R$, 向量$\xi$ 在两组基下的坐标分别为 $x_{i}$ 和$y_{i}$,(很多物理量不 ...
分类:
其他好文 时间:
2017-11-22 00:45:09
阅读次数:
196
原题地址: https://leetcode.com/problems/two-sum/description/ 题目: Given an array of integers, return indices of the two numbers such that they add up to a ...
分类:
其他好文 时间:
2017-11-13 18:21:11
阅读次数:
133
1.numpy中一些函数的用法学习 shape()用法: shape : tuple of ints The elements of the shape tuple give the lengths of the corresponding array dimensions.。 shape返回一个元 ...
分类:
编程语言 时间:
2017-11-12 15:38:20
阅读次数:
263
//金额转大写数字 const intToChinese = money => { //汉字的数字 let cnNums = new Array('零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'); //基本单位 let cnIntRadice = n... ...
分类:
Web程序 时间:
2017-11-08 17:33:53
阅读次数:
182
题意:http://www.lightoj.com/volume_showproblem.php?problem=1248 投掷出第一个未出现的点数的概率为n/n = 1, 因为第一次投掷必然是未出现的。 第二个未出现的点数第一次出现的概率为 (n - 1) / n,因为有一个已经投掷出现过。 第i ...
分类:
其他好文 时间:
2017-11-08 16:04:15
阅读次数:
178
题意:http://www.lightoj.com/volume_showproblem.php?problem=1248 投掷出第一个未出现的点数的概率为n/n = 1, 因为第一次投掷必然是未出现的。 第二个未出现的点数第一次出现的概率为 (n - 1) / n,因为有一个已经投掷出现过。 第i ...
分类:
其他好文 时间:
2017-11-08 16:00:16
阅读次数:
165
Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that t ...
分类:
其他好文 时间:
2017-11-05 17:21:05
阅读次数:
156
[poj P1141] Brackets Sequence Time Limit: 1000MS Memory Limit: 65536K Special Judge Description Let us define a regular brackets sequence in the follo ...
分类:
其他好文 时间:
2017-10-31 20:08:26
阅读次数:
139
hihocoder-Week174-Dice Possibility Dice Possibility Dice Possibility 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 What is possibility of rolling N dice and ...
分类:
其他好文 时间:
2017-10-30 19:57:10
阅读次数:
217
题目1 : Dice Possibility 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 What is possibility of rolling N dice and the sum of ...
分类:
其他好文 时间:
2017-10-30 14:47:16
阅读次数:
196