上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 63 下一页
摘要: 八方向 深搜 阅读全文
posted @ 2019-10-27 00:28 晴屿 阅读(112) 评论(0) 推荐(0)
摘要: https://www.luogu.org/problem/P1379 这个代码需要用c++11提交。 阅读全文
posted @ 2019-10-26 23:46 晴屿 阅读(148) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/847/ 阅读全文
posted @ 2019-10-26 23:36 晴屿 阅读(191) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/787/ 快排是先排序,再递归。归并是先递归,在排序 快排 双向指针 阅读全文
posted @ 2019-10-26 23:30 晴屿 阅读(152) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/789/ 阅读全文
posted @ 2019-10-26 23:30 晴屿 阅读(108) 评论(0) 推荐(0)
摘要: 深搜模板题 https://www.acwing.com/problem/content/846/ 模拟队列 输出路径 应用队列 阅读全文
posted @ 2019-10-25 17:27 晴屿 阅读(226) 评论(0) 推荐(0)
摘要: 深搜的一道水题 https://www.acwing.com/problem/content/844/ 正确输入输出 阅读全文
posted @ 2019-10-25 17:25 晴屿 阅读(213) 评论(0) 推荐(0)
摘要: 如果ch是大写字母,则ch-‘A’就是它在字母表中的序号,(A的序号为0,B为1) 如果ch为数字,那么ch-‘0’就是这个数值本身,' 5 ' - ' 0 ' =5; 阅读全文
posted @ 2019-10-22 21:41 晴屿 阅读(166) 评论(0) 推荐(0)
摘要: scanf("%s", )输入字符串,碰到空格或者TAB就会停下来,虽然下次调用的时候会输入下一个字符串,可是不知道两次输入的字符串中间有多少个空格、TAB甚至换行符。所以,在处理此题的时候,可以用以下两种方法。 第一种是使用fgetc(fin),它读取一个打开的文件fin,读取一个字符,然后返回一 阅读全文
posted @ 2019-10-22 11:33 晴屿 阅读(134) 评论(0) 推荐(0)
摘要: #include using namespace std; #define maxn 20 int a[maxn][maxn]; int main(){ int n,x,y,tot=0; cin>>n; memset(a,0,sizeof(a)); tot=a[x=0][y=n-1]=1; while(tot=0&&!a[x][y-1]) a[x][-... 阅读全文
posted @ 2019-10-22 11:31 晴屿 阅读(164) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 63 下一页