码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
第八章章节练习
第一题.错误代码如下 Square sq=(Square)circle; 原因:对象强制类型转换出错.ClassCastException 去掉错误代码,输出结果为:9.0 12.56 第二题. 目录 主代码 运行结果: 第三题 目录 主代码 运行结果 第四题 目录 主代码 运行结果 ...
分类:其他好文   时间:2019-02-20 15:58:33    阅读次数:266
URAL - 1627:Join (生成树计数)
Join 题目链接:https://vjudge.net/problem/URAL-1627 Description: Businessman Petya recently bought a new house. This house has one floor with n × m square ...
分类:其他好文   时间:2019-02-17 22:19:57    阅读次数:230
Leetcode-996 Number of Squareful Arrays(正方形数组的数目)
1 #define _for(i,a,b) for(int i = (a);i & A) 12 { 13 int sz = A.size(); 14 int cnt = 0; 15 int p = 0; 16 _for(i,0,sz) 17 _for(... ...
分类:编程语言   时间:2019-02-17 12:34:47    阅读次数:357
Uva 11520 - Fill the Square 贪心 难度: 0
题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2515 题意 n*n矩阵中填入大写字母,n <= 10,要求从上到下从左到右字母序最小,相邻格子字母 ...
分类:其他好文   时间:2019-02-16 20:43:50    阅读次数:214
Codeforces Round #530 (Div. 2)
B:Squares and Segments 题意: 给定n,求最小的a+b使得a*b>=n 题解: 直接开平方最优。 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <iostream> 5 #i ...
分类:其他好文   时间:2019-02-16 10:38:42    阅读次数:176
221. Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Approach #1: DP. [C++] Ana ...
分类:其他好文   时间:2019-02-15 22:41:36    阅读次数:219
常见的概率分布类型(Probability Distribution)
统计学中最常见的几种概率分布分别是正态分布(normal distribution),t分布(t distribution),F分布(F distribution)和卡方分布(χ2 distribution,chi-square distribution),其中后三种属于抽样分布。 为什么要研究概率 ...
分类:其他好文   时间:2019-02-15 15:50:54    阅读次数:630
一本通1604理想的正方形
1604:理想的正方形 【题目描述】 原题来自:HAOI 2007 有一个 a×b 的整数组成的矩阵,现请你从中找出一个 n×n 的正方形区域,使得该区域所有数中的最大值和最小值的差最小。 【输入】 第一行为三个整数,分别表示 a,b,n 的值; 第二行至第 a+1 行每行为 b 个非负整数,表示矩 ...
分类:其他好文   时间:2019-02-14 22:14:30    阅读次数:163
如何评价模型的好坏(三)
二分类问题 多分类问题 连续变量问题 四、连续变量问题(回归) (1)距离 (2)残差 (3)残差平方和(SSE): 真实值与预测值之间误差的平方和。 (3-1)均方根误差(MSE = mean square error):真实值与预测值之间误差的平方和的均值。(最小二乘) 均方差越小越好,即最小二 ...
分类:其他好文   时间:2019-02-14 00:21:48    阅读次数:327
POJ 1017
Packets Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 53686 Accepted: 18250 Description A factory produces products packed in square pack ...
分类:其他好文   时间:2019-02-10 14:59:33    阅读次数:118
2122条   上一页 1 ... 32 33 34 35 36 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!