12 2017 档案

摘要:题目 题解 题目公式等价于f(i,j)=(j i)^2+(presumj presumi)^2;因此,可以转化为求平面上的最近点对问题。 代码 include include include include using namespace std; typedef __int64 LL; const 阅读全文
posted @ 2017-12-27 09:28 fenicnn 阅读(178) 评论(0) 推荐(0)
摘要:题目链接: "https://leetcode.com/problems/count different palindromic subsequences/description/" 730.Count Different Palindromic Subsequences 题意 给你一个只包含a、b 阅读全文
posted @ 2017-12-05 00:17 fenicnn 阅读(490) 评论(0) 推荐(0)