码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
Manthan, Codefest 19 (open for everyone, rated, Div. 1 + Div. 2) C. Magic Grid
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
React——教程 && 零基础入门
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
codeforce Round #599(Div.2)
题目传送门 A. Maximum Square 题目意思是给你n个长条,每个长条的高度是num[i](0 < i < n),每一条的宽度都是 1 ;然后求这些长条可以组成的最大面积的正方形的宽度是多少,将它输出来。 题目分析 :因为要求的是正方形,而且面积是最大的,所以既要看它的宽度也要看它的高度。 ...
分类:其他好文   时间:2019-11-10 22:50:11    阅读次数:126
玉米田Corn Fields
题目描述 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
【codeforces 19/11/06 div2】A. Maximum Square
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
Codeforces Round #599 (Div. 2)
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
Codeforces Round #599 (Div. 2)
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类类型接口 TypeScript接口与继承 一、TypeScript接口的基本使用 1.1定义TypeScript接口的指令(interface) 接口让我们想到的第一个短语 ...
分类:其他好文   时间:2019-11-07 09:44:19    阅读次数:93
[LC] 394. Decode String
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
2122条   上一页 1 ... 18 19 20 21 22 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!