E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
triangle
HDU 4483 Lattice
triangle
(欧拉函数)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4483 题意:给出一个(n+1)*(n+1)的格子。在这个格子中存在多少个三角形? 思路:反着想,所有情况减去不是三角形的。下面计算不是三角形的。 (1)我们用C(n,m)表示组合数。考虑共线,一共有C((n+1)*(n+1),3)种情况。然后,要减去共线的情况。首先,三个点在同一行或者同一列,这
·
2015-11-11 09:18
HDU
UVA11401
Triangle
Counting(简单计数)
转载请注明出处: http://www.cnblogs.com/fraud/ ——by fraud 题目意思:从1,2,3,……,n中选出3个不同的整数使其构成一个三角形,有多少种方法? 分析: 枚举最长边c,设另外两条边为a,b,则a+b>c,即c>a>
·
2015-11-11 08:28
count
ZOJ 3598 Spherical
Triangle
(三角关系)
ZOJ Problem Set - 3598 Spherical
Triangle
Time Limit: 2 Seconds  
·
2015-11-11 08:00
RIA
Pascal's
Triangle
II —LeetCode
Given an index k, return the kth row of the Pascal's
triangle
.
·
2015-11-11 07:25
LeetCode
LeetCode——Pascal's
Triangle
Given numRows, generate the first numRows of Pascal's
triangle
.
·
2015-11-11 07:21
LeetCode
C#学习笔记6:各种字符串问题
如: Class
Triangle
{ Static void Main() { System.Console.Write(@” /\\ /  
·
2015-11-11 06:07
学习笔记
Pascal's
Triangle
I, II
题目链接 https://leetcode.com/problems/pascals-
triangle
/ https://leetcode.com/problems/pascals-
triangle
-ii
·
2015-11-11 05:36
pascal
Vasily the Bear and
Triangle
Vasily the Bear and
Triangle
time limit per test 1 second memory limit per test 256 megabytes
·
2015-11-11 05:55
codeforces
UVa 485 Pascal's
Triangle
of Death
大整数,主要是设计好怎么加,结果怎么保存,进位的处理要特别小心。 code 1 // 72ms 2010-05-18 9:09:03 2 // Type: Big integer(杨辉三角) 3 // key1: 数位不同的两
·
2015-11-11 05:48
pascal
poj2986A
Triangle
and a Circle&&poj3675Telescope(三角形剖分)
链接 2986是3675的简化版,只有一个三角形。 这题主要在于求剖分后三角形与圆的相交面积,需要分情况讨论。 具体可以看此博客 http://hi.baidu.com/billdu/item/703ad4e15d819db52f140b0b 在分析第3、4两种情况时,我是用角度来进行判断的,如果<obc||<ocb大于90度就为他所说的第四种情况,不然就是第三种情况
·
2015-11-11 05:18
scope
poj2079
Triangle
(N点中三点组成三角形面积最大)
链接 根据旋转卡壳的思想,找到当前边的最远点。 确定i,j找到最远的k使 cross(i,j,k)最大,那么i,j+1时只需从k+1开始找即可 。 1 #include <iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm>
·
2015-11-11 05:52
poj
poj1927Area in
Triangle
链接 物理渣只能搜题解了。。 分三种情况 1、len>=a+b+c 2、len<内切圆半径 圆的面积是最大的 --》以len为周长的圆 3、看这篇http://blog.sina.com.cn/s/blog_6a46cc3f0100tujn.html 1 #include <iostream> 2 #include<cstdio>
·
2015-11-11 05:47
poj
poj1673EXOCENTER OF A
TRIANGLE
链接 据说这题是垂心。。数学太弱没有看出来,写了分朴实无华的代码。。 旋转三边得到图中的外顶点,然后连接三角形顶点求交点,交上WA。。觉得没什么错误就去看了下discuss,发现都在说精度问题,果断开始水,最后+了epsAC了。。 1 #include <iostream> 2 #include<cstdio> 3 #include<cs
·
2015-11-11 05:45
poj
uva 11437 -
Triangle
Fun
这是一道简单的计算几何; In the picture below you can see a
triangle
ABC.
·
2015-11-11 04:54
RIA
POJ 1673 EXOCENTER OF A
TRIANGLE
(垂心)
题目链接 折腾了半天,没想出怎么证明,以前初中老师教过,不知道怎么办,就量量。。。受不了,怒抄模版1Y。。。 1 #include <cstdio> 2 #include <iostream> 3 using namespace std; 4 #define eps 1e-8 5 struct point 6 { 7 double x
·
2015-11-11 04:43
poj
[leetcode]
Triangle
public class Solution { public int minimumTotal(ArrayList<ArrayList<Integer>>
triangle
·
2015-11-11 03:39
LeetCode
[leetcode]Pascal's
Triangle
简单题。不过又出现了一次初始状态设置的错误,当numRows==0时所作的设置,numRows==1时也需要。但一开始放到if block里面去了。 public class Solution { public ArrayList<ArrayList<Integer>> generate(int numRows) { ArrayList<
·
2015-11-11 03:39
LeetCode
欧拉项目python代码(12--)
findivisionnum(num): count = 0 n=1 import math while count<num: count = 0 for i in range(1,int(math.sqrt(
triangle
·
2015-11-11 02:32
python
BNU27932——
Triangle
——————【数学计算面积】
Triangle
Time Limit: 1000ms Memory Limit: 65536KB 64-bit integer IO format: %lld  
·
2015-11-11 02:15
RIA
Triangle
——LeetCode
Given a
triangle
, find the minimum path sum from top to bottom.
·
2015-11-11 01:23
LeetCode
POJ1163——The
Triangle
Description 73 88 1 02 7 4 44 5 2 6 5(Figure 1) Figure 1 shows a number
triangle
·
2015-11-11 01:13
poj
joj2471
2471: String
triangle
Result TIME Limit MEMORY Limit Run Times AC Times JUDGE 3s 65536K 3073 611
·
2015-11-11 01:05
OJ
Leetcode:
Triangle
Given a
triangle
, find the minimum path sum from top to bottom.
·
2015-11-11 01:44
LeetCode
Leetcode: Pascal's
Triangle
Given numRows, generate the first numRows of Pascal's
triangle
.
·
2015-11-11 01:41
LeetCode
Leetcode: Pascal's
Triangle
II
Given an index k, return the kth row of the Pascal's
triangle
.
·
2015-11-11 01:41
LeetCode
careercup-排序和查找 11.2
例如,“
triangle
”是“integral”的变位词。 此题有个要求,对数组中的字符串进行分组,将变位词排在一起。注意,除此之外,并没有要求这些词按特定顺序排列。
·
2015-11-10 23:32
UP
leetcode-
Triangle
Difficulty:MediumGivenatriangle,findtheminimumpathsumfromtoptobottom.Eachstepyoumaymovetoadjacentnumbersontherowbelow.Forexample,giventhefollowingtriangle[ [2], [3,4], [6,5,7], [4,1,8,3] ] Theminimump
ljlstart
·
2015-11-10 23:00
OpenJudge/Poj 1163 The
Triangle
1.链接地址: http://bailian.openjudge.cn/practice/1163 http://poj.org/problem?id=1163 2.题目: 总时间限制: 1000ms 内存限制: 65536kB 描述
·
2015-11-10 22:01
open
OpenJudge/Poj 1163 The
Triangle
1.链接地址: http://bailian.openjudge.cn/practice/1163 http://poj.org/problem?id=1163 2.题目: 总时间限制: 1000ms 内存限制: 65536kB 描述
·
2015-11-10 22:45
open
POJ 1163 The
Triangle
简单DP 三角形左右取最大值就好,然后计算到最后一行时再取最大值。 #include<iostream> #include<cstdio> using namespace std; int main() { int a[101][101],n,i,j; while(scanf("%d",&n)!=-1)
·
2015-11-10 22:53
poj
hdu4324
Triangle
LOVE【tarjan强连通分量基础题】
输入输出没整明白也是醉了==还有能不能细心点儿???这要是比赛因为内存开大了WA一次冤不冤??/********** hud4324 **********/ #include #include #include #include usingnamespacestd; constintM=4e6+10,N=2e3+10; inthead[N],ed; charstr[2006][2006]; str
zhou_yujia
·
2015-11-09 21:00
HDU
杭电
Tarjan
连通性
LeetCode Pascal's
Triangle
class Solution { public: vector<vector<int> > generate(int numRows) { vector<vector<int> > res; if (numRows < 1) return res; vecto
·
2015-11-09 14:38
LeetCode
LeetCode Pascal's
Triangle
II
class Solution { public: vector<int> getRow(int rowIndex) { int half = (rowIndex + 1) / 2; int len = half * 2 + !(rowIndex & 0x1); int* ra = new i
·
2015-11-09 14:37
LeetCode
HDU 4466
Triangle
(计数)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4466 题意:给出一根长度为n的铁丝。将其分成若干段并将每段折成一个三角形,使得三角形都相似。有多少种分法? 思路:首先计算周长为M的三角形有多少个,设为f[M]。设三角形的三边a,b,c满足a<=b<=c,那么分两种情况: (1)b=c,此时c的上限为(M-1)/2,下限为cei
·
2015-11-09 14:52
HDU
uva 11401 -
Triangle
Counting
option=com_onlinejudge&Itemid=8&page=show_problem&problem=2396 11401 -
Triangle
·
2015-11-09 14:49
count
leetcode_question_119 Pascal's
Triangle
II
Given an index k, return the kth row of the Pascal's
triangle
.
·
2015-11-09 14:50
LeetCode
oracle管理
备份 1:exp: 1):用户名/密码@连接库名 2):D:\DB\
triangle
.dmp 3):用户名(需要导出的用户名) 定时备份 1:确定你的计算机上装有oracle的客户端
·
2015-11-09 13:53
oracle
Pascal's
Triangle
II
Pascal's
Triangle
II Given an index k, return the kth row of the Pascal's
triangle
·
2015-11-09 13:58
LeetCode
动态规划练习 索引
1, The
Triangle
(POJ 1163) 2, Function Run Fun (POJ 1579) 3, Recaman's Sequence (POJ 2081) 4, World
·
2015-11-09 12:45
动态规划
动态规划练习 1
题目:The
Triangle
(POJ 1163) 链接:http://acm.pku.edu.cn/JudgeOnline/problem?
·
2015-11-09 12:05
动态规划
Leetcode#120
Triangle
编码时可状态压缩成1维数组 代码: 1 int minimumTotal(vector<vector<int> > &
triangle
) {
·
2015-11-09 12:58
LeetCode
poj 2954
Triangle
(pick 定理 的应用 )
题意 : 求一个三角形中的 整数 点有多少个? 题接: Pick定理证明: http://translate.google.com/translate?u=http://episte.math.ntu.edu.tw/articles/sm/sm_25_10_1/page4.html&hl=zh-CN&ie=UTF8&sl=zh-TW&tl=zh-CN &
·
2015-11-09 12:19
poj
joj2511: Number
triangle
2511: Number
triangle
Result TIME Limit MEMORY Limit Run Times AC Times JUDGE 1s 65536K
·
2015-11-09 11:55
number
Leetcode OJ :
Triangle
动态规划 python solution
Total Accepted: 31557 Total Submissions: 116793 Given a
triangle
, find the minimum
·
2015-11-08 16:30
LeetCode
算法实现--三角形式输出C(n,k)
Practice : The values of the combinations method used in the text are often displayed in the form of a
triangle
·
2015-11-08 14:14
算法
旋转卡壳法求最大三角形
poj2079
Triangle
Time Limit: 3000MS Memory Limit: 30000K Total Submissions
·
2015-11-08 14:26
转
Codeforces Round #239 (Div. 1)
链接:http://codeforces.com/contest/407 A
Triangle
给出直角三角形的两个直角边,构造出一个三角形顶点均为整数,且每条边不与xy轴平行。
·
2015-11-08 11:56
codeforces
【LeetCode】
Triangle
解决报告
【称号】 Given a
triangle
, find the minimum path sum from top to bottom.
·
2015-11-08 11:15
LeetCode
poj1163The
Triangle
(简单DP)
转载请注明出处:http://blog.csdn.net/u012860063?viewmode=contents 题目链接:http://poj.org/problem?id=1163 ------------------------------------------------------------------------------------------------------
·
2015-11-08 11:11
poj
Pascal's
Triangle
Pascal's
Triangle
Given numRows, generate the first numRows of Pascal's
triangle
.
·
2015-11-08 11:36
LeetCode
上一页
37
38
39
40
41
42
43
44
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他