/** Description:不容易系列之(3)—— LELE的RPG难题 http://acm.hdu.edu.cn/showproblem.php?pid=2045 递推题: (1)当前n-1个方格已满足任何相邻的方格不同色,且首尾两格也不同色时,第n个格子就只有一种涂法, 就是异于第1、n-1个格
POJ1700 Cross River,一道贪心题,合理选择贪心策略 :http://poj.org/problem?id=1700 #include<iostream> #include<vector> #include<algorithm> #include<iterator> using namespace std;
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号