solated_L
solated_L
全部文章
分类
题解(22)
归档
标签
去牛客网
登录
/
注册
solated_L的博客
全部文章
(共5篇)
题解 | #素数判断#
这一道题就是死在long long 和stoll上面了,简直了,这里掌握了一个新东西stoll #include<iostream> #include<string> using namespace std; bool isprime(long long x) ...
2024-05-22
0
169
题解 | #素数判断#
这里学到的东西主要是一个是 return true放的位置,第二个是学会拆解函数 #include<iostream> #include<bits/stdc++.h> using namespace std; bool isprime(int x) { i...
2024-05-22
0
165
题解 | #[NOIP2001]装箱问题#
很奇怪的一道题,这样做居然要过不去 居然不压成一维就对了,其他情况就错了 #include<bits/stdc++.h> using namespace std; const int N=20000; int a[N]; int dp[N]; int main() { ...
2024-05-15
0
178
题解 | #牛可乐和最长公共子序列#
没想到这里能做到一道经典的LCS经典的模板问题 //经典的求解两个序列的最长公共子序列的长 //LCSd的经典模版问题 #include <bits/stdc++.h> using namespace std; const int maxn = 5000+10; int dp[max...
2024-05-14
0
178
模拟类问题(1)抓住本质,周围的点不变
vector数组+pair对象+x.first与x.second的联合使用 牛客上开始写题解的第一天 ">#include<bits/stdc++.h> #include<vector> using namespace std; typedef pair<int,...
C++
2024-05-04
0
174