摘要:
poj2386 Lake Counting 简单题#include#includeusing namespace std;int n,m;char map[101][101];int dir[8][2] = { {1,0},{1,1},{1,-1},{0,1},{0,-1},{-1,0},{-1,-... 阅读全文
摘要:
跟着训练赛做的,每道题都学到很多,这次的数据都比较好心,输入简单,思路容易想,但是代码都有点蛋疼hdu2845 Beans 二次DP/*ID: neverchanjePROG:LANG: C++11*/#include#include#include#include#include#include#... 阅读全文
摘要:
感觉usaco的每道题都很不错,因为虽然简单但是都有点麻烦,很锻炼编程能力Your Ride Is Here纯水题/*ID: wutao161PROG: rideLANG: C++ */#include #include #include #include using namespace s... 阅读全文
摘要:
题目链接http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1094//题目没搞懂-_-# 原来两个expression的时候必须要有括号,说白了就是单个矩阵的时候没有括号,其他情况一定都打了括号 //利用递归函数expressi... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2822#include#include#includeusing namespace std;int len,wid;char map[1010][1010];const int dir[4][2]={{... 阅读全文