Triangular Sums 时间限制: 3000 ms | 内存限制: 65535 KB 难度: 2 描述 The nth Triangular number, T(n) = 1 + … + n, is the sum of the first n integers. It is the number of points in a triangula
题目:Triangular, pentagonal, and hexagonal Triangle, pentagonal, and hexagonal numbers are generated by the following formulae: Triangle Tn=n(n+1)/2 1, 3, 6, 10, 15, ...Pentagonal Pn=n(3n1)/2 1, 5, 12
Codeforces Round #710 (Div. 3) F. Triangular Paths 题意 有一个无限高度的三角形,顶端编号为 ( 1 , 1 ) (1,1) (1,1),第 r r r层有 r r r个点,从左至右按顺序 c c c编号为 ( r , c ) (r,c) (r,c),如图所示 对于每个节点 ( r , c ) (r,c) (r,c),都有两条连接下一