Let us define a magic grid to be a square matrix of integers of size n×nn×n, satisfying the following conditions. All integers from 00 to (n2?1)(n2?1) ...
分类:
其他好文 时间:
2019-11-16 00:27:55
阅读次数:
54
Tutorial: Intro to React This tutorial doesn’t assume any existing React knowledge. Tip This tutorial is designed for people who prefer to learn by do ...
分类:
其他好文 时间:
2019-11-15 12:30:28
阅读次数:
104
题目传送门 A. Maximum Square 题目意思是给你n个长条,每个长条的高度是num[i](0 < i < n),每一条的宽度都是 1 ;然后求这些长条可以组成的最大面积的正方形的宽度是多少,将它输出来。 题目分析 :因为要求的是正方形,而且面积是最大的,所以既要看它的宽度也要看它的高度。 ...
分类:
其他好文 时间:
2019-11-10 22:50:11
阅读次数:
126
题目描述 Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy ...
分类:
其他好文 时间:
2019-11-10 15:16:03
阅读次数:
74
1.均方误差(Mean Square Error / Quadratic Loss): MSE保证没有特别异常的预测值,因为平方部分放大了这种误差。 2.平均绝对误差(Mean Absolute Error): MAE保证预测值在大多数情况下表现良好(不会刻意管异常值),因为所有的误差都按相同的线性 ...
分类:
其他好文 时间:
2019-11-09 19:29:01
阅读次数:
102
1 #include<iostream> 2 #include<algorithm> 3 #include<map> 4 using namespace std; 5 6 map<int, int>cnt; 7 8 int main() 9 { 10 int T; 11 cin >> T; 12 w ...
分类:
其他好文 时间:
2019-11-07 12:53:58
阅读次数:
65
A. Maximum Square 直接O(kn^2)枚举最大边长 #include<iostream> #include<cstdio> #include<cstring> using namespace std; int k,n,a[1005]; int main(){ cin>>k; whil ...
分类:
其他好文 时间:
2019-11-07 10:04:02
阅读次数:
97
A Maximum Square 题意:给 $n$ 块宽度为 $1$ 长度为 $a_i$ 的木板,把这些木板拼在一起,求最大形成的正方形的边长。 题解:贪心,从大到小排序,然后找第一个满足 $a_i using namespace std; typedef long long ll; int n, ...
分类:
其他好文 时间:
2019-11-07 09:47:09
阅读次数:
105
TypeScript接口的基本使用 TypeScript函数类型接口 TypeScript可索引类型接口 TypeScript类类型接口 TypeScript接口与继承 一、TypeScript接口的基本使用 1.1定义TypeScript接口的指令(interface) 接口让我们想到的第一个短语 ...
分类:
其他好文 时间:
2019-11-07 09:44:19
阅读次数:
93
Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is be ...
分类:
其他好文 时间:
2019-11-05 13:57:41
阅读次数:
110