不想上班的丘比特
不想上班的丘比特
全部文章
分类
方法(1)
题解(2)
归档
标签
去牛客网
登录
/
注册
Welcometomychannel
刷算法小白题刷到疲倦!
全部文章
(共3篇)
题解 | #渴望力量吗#
题目非常简单,q个询问,类似在一个区间内找目标值的数量 #include #include using namespace std; int n; int main() { while(cin >> n){ vector<int> a(n + 1); for (int i...
C++
2025-04-10
1
15
题解 | #小红的ABC#
#include<bits/stdc++.h> #include using namespace std; int main() { string s; cin >> s; int minLength = INT_MAX;// 初始化最短回文串长度 for(int i = 0...
双指针
2025-04-10
1
15
A的B次方对MOD取模的值
#include<bits/stdc++.h> using namespace std; typedef long long LL; //快速幂 //将B化成二进制,如5的11次方,11的二进制为1011 //将B的二进制中为1的位置对应的A的2的k次幂相乘,得到最终结果。 int qu...
C++
数学
2025-04-03
2
26