douuuuu
douuuuu
全部文章
题解
c++(3)
css(1)
JavaScript(3)
前端(2)
数学(1)
深入学习JS(6)
算法总结(3)
归档
标签
去牛客网
登录
/
注册
douuuuu的博客
全部文章
/ 题解
(共13篇)
题解 | #字符串的展开#
过了70 #include <iostream> #include <algorithm> using namespace std; int p1,p2,p3; string s; bool check(char s1,char s2){ if(s1 >= '...
2024-02-03
0
205
约瑟夫环
取模忘了看:%运算 #include <iostream> #include <vector> using namespace std; int n,k,m; int main(){ cin >> n >> k >> m; ...
2024-02-03
0
215
跳台阶
第0级台阶也是需要跳的 #include <iostream> using namespace std; int n; int dp[20]; int main(){ cin >> n; dp[0] = 1,dp[1] = 1; for(int i...
2024-02-02
0
147
二维前缀和
#include <iostream> using namespace std; int n,m,q; const int N = 1010; int sum[N][N]; int main(){ cin >> n >> m >> q; ...
2024-01-31
0
165
前缀和模板
#include <iostream> using namespace std; int n,m; const int N = 100010; int a[N],sum[N]; int main(){ cin >> n >> m; for(int...
2024-01-31
0
208
完全平方数
#include <iostream> #include <cmath> using namespace std; int main() { int n; cin >> n; int l, r; while (n--) { ...
2024-01-24
0
256
牛牛的三角形
#include <iostream> #include <algorithm> using namespace std; int n; int main(){ cin >> n; int Arr[n]; for(int i = 0;i ...
2024-01-22
0
263
[NOIP2010]机器翻译
#include <iostream> #include <deque> using namespace std; deque<int> dict; int count; int main(){ int m,n; cin >> m &g...
2024-01-18
0
192
[NOIP2015]金币
#include <iostream> using namespace std; int main(){ int k; cin >> k; int sum = 0; int state = 1; int dayCount = 0; ...
2024-01-18
0
191
调和级数
#include <iostream> using namespace std; int main(){ int k; cin >> k; double sum = 0; int count = 0; for(int i = 1;su...
2024-01-17
0
225
首页
上一页
1
2
下一页
末页