10 2021 档案

摘要:###C-Grandma Capa Knits a Scarf ####题目描述 Grandma Capa决定去织一条围巾,她让Grandpa Sher给她制作一个图形,这个图形就是一个由小写的英文字母组成得字符串。Grandpa Sher写下了一个长度为 n 的字符串s。 Grandma Capa 阅读全文
posted @ 2021-10-27 11:33 伍六柒- 阅读(101) 评论(0) 推荐(0)
摘要:#自动规划路径 #include <bits/stdc++.h> using namespace std; const int N = 110; struct node { int x,y,fx,fy; int g,h,f; int setG(int ff) { int sum = abs(fx - 阅读全文
posted @ 2021-10-25 16:47 伍六柒- 阅读(99) 评论(0) 推荐(0)
摘要:#八数码 #include <iostream> #include <queue> #include <cstring> #include <cstdio> #include <conio.h> using namespace std; struct node { int mp[9]; int x, 阅读全文
posted @ 2021-10-14 22:18 伍六柒- 阅读(78) 评论(0) 推荐(0)
摘要:##洛谷P2822组合数问题 ###题目描述 ###解题思路 由于 0 ⇐ i ⇐ n, 0 ⇐ j ⇐ min(i,m),我们要求出每一组 (i, j) 的组合数,判断其是否能被 k 整除,能则 ans++,否则 ans 不变。如果我们每求一次 (i, j) 就求一次组合数,那么一定会超时。这里有 阅读全文
posted @ 2021-10-05 23:23 伍六柒- 阅读(133) 评论(0) 推荐(0)