# Auther: Aaron Fan#示例1:#定义几个字典alien_0 = {"color":"green", "points":5}alien_1 = {"color":"yellow", "points":10}alien_2 = {"color":"red", "points":15}# ...
分类:
编程语言 时间:
2016-11-12 20:07:25
阅读次数:
324
Currency Exchange Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 16244 Accepted: 5656 Description Several currency exchange points are wor ...
分类:
其他好文 时间:
2016-11-12 19:55:36
阅读次数:
180
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor ...
分类:
其他好文 时间:
2016-11-10 14:06:18
阅读次数:
225
Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between i and j equals ...
分类:
其他好文 时间:
2016-11-10 03:16:24
阅读次数:
184
点:Point类 Point、Point2i、Point_<int>等价 Point2f、Point_<float>等价 用法: 颜色:Scalar类 Scalar(b,g,r,alpha); 第四个参数不需要时可以不写 Scalar类的源头是Scalar_类,我们常用的Scalar其实就是Scal ...
分类:
其他好文 时间:
2016-11-07 22:14:16
阅读次数:
232
用CSS绘制三角形箭头。使用纯CSS,你只需要很少的代码就可以创作出各种浏览器都兼容的三角形箭头! CSS代码: 绘制这些三角形的关键在于,你要让箭头所指方向的两个侧边有很粗的边框。而背向箭头方向的一边也是同样粗的边框,而这条边的颜色就是你的三角形的颜色。边框越粗,三角形越大。用这种方法你可以绘制出 ...
分类:
其他好文 时间:
2016-11-02 23:33:44
阅读次数:
184
Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the leve ...
分类:
编程语言 时间:
2016-10-30 19:30:28
阅读次数:
236
算法思路 路径矩阵 通过一个图的权值矩阵求出它的每两点间的最短路径矩阵。从图的带权邻接矩阵A=[a(i,j)] n×n开始,递归地进行n次更新,即由矩阵D(0)=A,按一个公式,构造出矩阵D(1);又用同样地公式由D(1)构造出D(2),以此类推。最后又用同样的公式由D(n-1)构造出矩阵D(n)。 ...
分类:
编程语言 时间:
2016-10-30 14:05:49
阅读次数:
225
参考资料: http://zhidao.baidu.com/link?url=Fjt8F2-hATIAzY3lvj8aMUNuKoHhkaH8K0ixvJCHMQdwmob5NRDaYAVGBBXo4nONHgLeBiLUBpIq-T0i8axsmK8Pjz6Ozz7Nennr-b3HBGi c++... ...
分类:
其他好文 时间:
2016-10-27 01:27:30
阅读次数:
219
#include<iostream>#include<cmath> using namespace std;int main(){ int n; cin>>n; while(n--){ int t; cin>>t; int points=0; while(t--){ int a,b; cin>>a> ...
分类:
其他好文 时间:
2016-10-22 14:49:05
阅读次数:
122