摘要: "Codeforces Round 113 (Div. 2)" 题目链接: "Polygons" You've got another geometrical task. You are given two non degenerate polygons $A$ and $B$ as vertex 阅读全文
posted @ 2019-08-27 22:19 wuli涛涛 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "公式题 (2)" 比赛链接: "华东交通大学2018年ACM“双基”程序设计竞赛" 题目描述 令f(n)=2 f(n 1)+3 f(n 2)+n,f(1)=1,f(2)=2 令g(n)=g(n 1)+f(n)+n n,g(1)=2 告诉你n,输出g(n)的结果,结果对1e9+7取模 输 阅读全文
posted @ 2019-08-27 21:56 wuli涛涛 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 3070" Problem Description In the Fibonacci integer sequence, $F_0 = 0$, $F_1 = 1$, and $F_n = F_{n − 1} + F_{n − 2}$ for $n \ge 2$. For exa 阅读全文
posted @ 2019-08-27 19:56 wuli涛涛 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "HDU 1575" Problem Description A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input 数据的第一行是一个T,表示有T组数据。 每组数据的第一行有n(2 对应每组数据,输出Tr(A^k)%9973。 Sam 阅读全文
posted @ 2019-08-27 16:56 wuli涛涛 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "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 阅读全文
posted @ 2019-08-27 16:49 wuli涛涛 阅读(205) 评论(0) 推荐(0) 编辑