上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 记得删掉时间测试 #include<cstdio> #include<iostream> #include<ctime> using namespace std; char s[2005]; int main(void) { int n; cin >> n; getchar(); for (int 阅读全文
posted @ 2021-02-07 17:08 loliconsk 阅读(72) 评论(0) 推荐(0)
摘要: DFS 油田 BFS Trees on the level abbott的复仇 STL 交换学生 铁轨 团队队列 丑数 模拟 骰子涂色 树 小球下落 阅读全文
posted @ 2021-02-06 21:01 loliconsk 阅读(51) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<cstdlib> #include<queue> #include<vector> #include<cstring> using namespace std; struct Node { bool have_ 阅读全文
posted @ 2021-02-06 20:54 loliconsk 阅读(75) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<cstring> using namespace std; int idx[105][105],m,n; char pic[105][105]; void dfs(int p, int q, int cnt) 阅读全文
posted @ 2021-02-06 20:45 loliconsk 阅读(74) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> using namespace std; #include<cstring> int s[1 << 20]; int main(void) { int t; while (cin >> t && t != -1) { int D 阅读全文
posted @ 2021-02-06 20:43 loliconsk 阅读(56) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<cstring> #include<iostream> #include<vector> #include<queue> using namespace std; struct Node//每一个结点的属性 { int r,c,dir; Node( 阅读全文
posted @ 2021-02-06 19:22 loliconsk 阅读(106) 评论(0) 推荐(0)
摘要: 递归排列#include<cstdio> #include<iostream> using namespace std; void print_permutation(int n, int a[], int cur) { if (cur == n) { for (int i = 0; i < 10; 阅读全文
posted @ 2021-02-03 12:48 loliconsk 阅读(55) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> using namespace std; #include<stack> #include<cstring> int a[10100000]; int main(void) { stack<int> s; int n; whil 阅读全文
posted @ 2021-02-02 18:30 loliconsk 阅读(59) 评论(0) 推荐(0)
摘要: 将每一个面朝上都枚举出来,然后在判断以垂直线旋转的四种可能,所以一共6*4种可能 代码如下: #include<cstdio> #include<iostream> using namespace std; #include<cstdlib> #include<cstring> int sta[6] 阅读全文
posted @ 2021-02-01 18:33 loliconsk 阅读(147) 评论(0) 推荐(0)
摘要: 思路: 最开始我是这样想的,将所有的组合保存在map中,key值为本校value为目标学校,将所有的值保存好后,用map[i]的值和map[map[i]]的值比较如果相等说明是可以交换的,直到全部比较完,但后来发现每个学校不只有一个人去交换,map的key不能保存相同的值,所以在这个的基础上,将ma 阅读全文
posted @ 2021-02-01 10:18 loliconsk 阅读(112) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页