![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
JOY酷酷
这个作者很懒,什么都没留下…
展开
-
LeetCode 877. Stone Game(数学 / dp)
题目链接 https://leetcode.com/problems/stone-game/ 题意 一共有 n 堆石子排成一排(n 为偶数),每堆石子个数为 a[i] 个(保证石子总数为基数)。甲乙依次拿取石子,每次只能拿最左或最右的一堆,且两人都采取最优策略,最后获得石子数多的赢。甲为先手,若甲赢则输出 true,否则输出 false。 思路1 动态规划。设 dp[i][j] 为石子为第 i 堆...原创 2020-01-29 21:45:22 · 185 阅读 · 0 评论 -
poj 2689 Prime Distance (大素数的筛选)
Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreticians for thousands of years is the questi原创 2015-08-07 00:56:28 · 751 阅读 · 2 评论 -
HDU 5768 Lucky7(CRT+容斥)
Problem Description When ?? was born, seven crows flew in and stopped beside him. In its childhood, ?? had been unfortunately fall into the sea. While it was dying, seven dolphins arched its body and原创 2016-07-29 11:32:29 · 603 阅读 · 0 评论