摘要:
T1 T2 T3 完全一样 T3 没有一次 AC 的原因在于从T2贴代码时没有加上&&top3==1&&top==4,拖了自己近两个小时 至于T3T4的表达式求值 点击查看代码 #include<iostream> #include<cstdio> #include<cmath> #include< 阅读全文
摘要:
T1:走迷宫 可以写if,也可以用for循环配合二维数组 注意初始化 vis[1][1]=1 注意递归次数过多会导致MLE(奇怪的知识又增加了) 点击查看代码 #include<iostream> #include<cstdio> #include<algorithm> #include<algor 阅读全文
摘要:
####T1:长度为n的集合中哪个子集和为c 点击查看代码 #include <iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<cstring> #include<string.h> using name 阅读全文
摘要:
1.数的划分 点击查看搜索 #include<iostream> #include<cstdio> #include<cmath> #include<algorithm> using namespace std; int n,m,a[100]; void dfs(int x,int y,int z) 阅读全文
摘要:
矩阵快速幂 线性代数以前倒是处理过,但矩阵题我从来没写过。。。我最最最兴奋的是终于搞掉P1962了,天知道我盯他多长时间了!!!! 矩乘的时候要注意控制坐标的不是循环顺序而是数组下标,循环该怎么套还是怎么套,完全不用动脑子 P1962 ####所谓矩阵快速幂 实现方式不是快速幂进矩阵,而是矩阵进快速 阅读全文
摘要:
![image](https://img2022.cnblogs.com/blog/2555151/202201/2555151-20220123102158917-434534113.png) 阅读全文
摘要:
https://www.cnblogs.com/fusiwei/p/11775503.html 阅读全文
摘要:
自从上次斐波那契的总结后,今天有一次遇上了正宗卡特兰数。 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845, 35357670, 129644790, 477638700, 阅读全文
摘要:
1.无解特判 2.看清排序的优先 3.T8错的太 一开始我看见数据范围用sort写结果错了 然后想用桶排拿个部分分 结果RE了 然后就在那跟桶排死磕 但那道题就是在卡桶排 交卷后该会累加器 然后就过了 一道普及减一个半点 我emo了 对于各种RE都有什么情况 最无法接受的RE=_= 程序想从非法地址 阅读全文
摘要:
我想写个指针怎么就这么难 挂掉的指针代码 #include<bits/stdc++.h> using namespace std; int n,a[100010]; int p1,p2; void merge(int p1,int mid,int p2) { int n1=mid-p1+1,n2=p 阅读全文