摘要: \(洛谷 P1019\) link 简单的dfs题目,直接模拟即可。 #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 21; int n; string wo 阅读全文
posted @ 2021-12-25 16:11 yhbqwq 阅读(19) 评论(0) 推荐(0) 编辑
摘要: \(洛谷P1002\) link 一个简单的DP题目,状态转移公式 \(dp[i][j]=dp[i-1][j]+dp[i][j-1]\),注意马能到达的地方和马现在的地方,\(dp = 0\)。 #include<bits/stdc++.h> using namespace std; bool vi 阅读全文
posted @ 2021-12-25 16:03 yhbqwq 阅读(20) 评论(0) 推荐(0) 编辑
摘要: \(洛谷 P1001\) 链接 这个题我们可以使用C++最基本的输入输出 scanf/printf 来AC。 不推荐使用 cin/cout,从好习惯开始! 这个题我们使用 quick_read,就是快读。 #include <bits/stdc++.h> // 万能头 using namespace 阅读全文
posted @ 2021-12-25 15:55 yhbqwq 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 洛谷 P1000 链接 这个题我们可以使用标准的PHP语言来打印输出。 PHP语言可以直接把输入复制下来就可以了。 代码 ******** ************ ####....#. #..###.....##.... ###.......###### ### ### ........... # 阅读全文
posted @ 2021-12-25 15:30 yhbqwq 阅读(26) 评论(0) 推荐(0) 编辑