摘要: Prime Distance On Tree Problem description. You are given a tree. If we select 2 distinct nodes uniformly at random, what's the probability that the d 阅读全文
posted @ 2017-07-29 20:05 meekyan 阅读(593) 评论(0) 推荐(0) 编辑
摘要: E -- Expected value of the expression E -- Expected value of the expression DESCRIPTION You are given an expression: A0O1A1O2A2⋯OnAnA0O1A1O2A2⋯OnAn, w 阅读全文
posted @ 2017-07-29 16:51 meekyan 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Arithmetic Progressions Given N integers A1, A2, …. AN, Dexter wants to know how many ways he can choose three numbers such that they are three consec 阅读全文
posted @ 2017-07-29 11:03 meekyan 阅读(144) 评论(0) 推荐(0) 编辑