题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long l,r,sum=0; cin…… 题解列表 2024年01月19日 0 点赞 0 评论 219 浏览 评分:9.9
1267: A+B Problem 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)…… 题解列表 2024年01月19日 0 点赞 0 评论 472 浏览 评分:9.9
C++超简单思路 摘要:解题思路:将数字问题转换成字符串问题注意事项:注意看题目要求参考代码:#include<iostream>#include<string>#include<algorithm>#include<std…… 题解列表 2024年01月19日 0 点赞 0 评论 321 浏览 评分:9.9
题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n,sum=0; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 202 浏览 评分:9.9
2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,x=0;//要付初值 …… 题解列表 2024年01月19日 0 点赞 0 评论 279 浏览 评分:9.9
2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long m,a,x=0; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 371 浏览 评分:9.9
编写题解 1266: 马拦过河卒 摘要:解题思路:观察发现: f(i,j)=f(i−1,j)+f(i,j−1)注意事项: 防止马的坐标出界,直接加二(单独判断也可以)参考代码:m,n,i,j=map(int,inp…… 题解列表 2024年01月19日 0 点赞 0 评论 368 浏览 评分:9.9
此题运用了stl中的vector容器 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ vector<int>v1; int num; cin>>n…… 题解列表 2024年01月20日 0 点赞 0 评论 234 浏览 评分:9.9
1537: 蓝桥杯算法提高VIP-栅格打印问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m; if(n==…… 题解列表 2024年01月20日 0 点赞 0 评论 207 浏览 评分:9.9
矩阵乘法(py函数) 摘要:解题思路:判定矩阵1的列数与矩阵2的行数是否相同,再进行计算,计算用嵌套循环即可注意事项:参考代码:def matrix_multiply(matrix1, matrix2): result =…… 题解列表 2024年01月20日 0 点赞 0 评论 367 浏览 评分:9.9