zhenghahahawda
zhenghahahawda
全部文章
分类
归档
标签
去牛客网
登录
/
注册
zhenghahahawda的博客
全部文章
(共11篇)
题解 | 矩形游戏
#include <cmath> #include <iostream> using namespace std; int main() { int n,ans=0;cin>>n; //分解质因数 ans+=n; for(int ...
2025-08-09
0
21
题解 | 1=N
#include <cmath> #include <iostream> using namespace std; int main() { //选择最小的质因数,本质就是分解质因数 int n,ans=0;cin>>n; for(int...
2025-08-09
0
28
题解 | 排座椅
#include <algorithm> #include <unordered_map> #include <iostream> #include <vector> using namespace std; bool cmp(const pair&...
2025-08-03
0
21
题解 | 01序列
#include <iostream> using namespace std; const int N = 1e5+10; int main() { int m,n;cin>>m; bool b[N]={0}; int replace=0; ...
2025-08-03
0
23
题解 | 灵异背包?
#include <iostream> using namespace std; int main() { int n;cin>>n; int a[n],s=0,minji=2e4; //求和,和为偶则为答案,为奇数减去最小的奇数 for(i...
2025-08-03
0
24
题解 | 小红的字符串
#include <iostream> using namespace std; int main() { string s;cin>>s; int l=0,r=s.size()-1; int c=0; while(l<r) {...
2025-08-03
0
24
题解 | 小红书推荐系统
#include <iostream> #include <unordered_map> #include <vector> #include <algorithm> using namespace std; bool cmp(pair<str...
2025-07-30
0
24
题解 | 小红的矩阵染色
#include <iostream> #include <vector> #include <algorithm> using namespace std; bool cmp(int a1,int a2) { return a1>a2; } i...
2025-07-30
1
31
题解 | 支付宝消费打折
#include <iostream> #include <algorithm> using namespace std; int main() { int n;double k;cin>>n>>k; double a[n]; ...
2025-07-29
1
36
题解 | 小红的回文串
#include <iostream> using namespace std; void solve() { string s;cin>>s; int l=0,r=s.size()-1; while(l<=r) { i...
2025-07-29
1
26
首页
上一页
1
2
下一页
末页