通过前面的文章了解到 Driver将用户代码转换成streamGraph再转换成Jobgraph后向Jobmanager端提交 JobManager启动以后会在Dispatcher.java起来RPC方法submitJob(jobGraph),用于接收来自Driver转化得到的JobGraph来启动 ...
分类:
其他好文 时间:
2019-08-29 16:11:29
阅读次数:
214
Description: A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of three points in the plane, return whet ...
分类:
其他好文 时间:
2019-08-29 13:26:50
阅读次数:
78
题目链接: "POJ 1269" Problem Description We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will int ...
分类:
其他好文 时间:
2019-08-27 16:57:27
阅读次数:
115
//洗牌函数 shuffle() 接收一个数组 let shuffle = function(pokers){ for(let i=0;i<pokers.length;i++) { let random = parseInt(Math.floor(Math.random()*54));//随机生成5 ...
分类:
其他好文 时间:
2019-08-25 11:40:11
阅读次数:
80
2019 杭电多校 10 1007 题目链接: "HDU 6697" 比赛链接: "2019 Multi University Training Contest 10" Problem Description The closest pair of points problem is a well ...
分类:
其他好文 时间:
2019-08-24 15:39:23
阅读次数:
109
#游戏开始,首先玩家选择大小,选择完成后开始摇骰子(11<=总值<=18为大,3<=总值<=10为小) import random def roll_dice(numbers=3,points=None): # 创建3个筛子numbers,创建点数points print('<<<<roll the... ...
分类:
编程语言 时间:
2019-08-21 11:41:55
阅读次数:
88
题意 构造 $n$ 个点使其凸度(顶点数最多的凸多边形的顶点数)恰好为 $m$,且任意三点不能共线。 (题意有点绕,建议看英文原文 分析 首先,题目并不是求凸包上的顶点数,而是求能形成的凸多边形的最大顶点数。 直接构造符合条件的结果。 易知,凸函数上的点都能构成凸多边形。 将 $m$ 个点置于 $y ...
分类:
其他好文 时间:
2019-08-17 22:11:32
阅读次数:
106
题目链接:https://www.spoj.com/problems/VLATTICE/en/ VLATTICE Visible Lattice Points Description Consider a N N N lattice. One corner is at (0,0,0) and the ...
分类:
其他好文 时间:
2019-08-17 18:28:32
阅读次数:
105
1 //compute orientation of an ordered triplet of points in the plane 2 /* 3 * counterclockwise, clockwise, colinear 4 */ 5 6 #include 7 8 using namesp... ...
分类:
其他好文 时间:
2019-08-17 17:45:33
阅读次数:
60
我学习的教材是Numerical Optimization , 作者是Jorge Nocedal 和Stephen Wright。 Jorge Nocedal 大叔现在在西北大学,研究的方向是优化和优化在机器学习中的应用等等。本科墨西哥国立大学,莱斯大学读的phd。老爷子今年55,15年和16年每年 ...
分类:
其他好文 时间:
2019-08-15 22:54:22
阅读次数:
129