用 for(auto & c:s)遍历字符串并赋值 摘要:解题思路: 字符串遍历注意事项: getline取空格参考代码:#include<iostream>#include<cstring>using na…… 题解列表 2023年07月23日 0 点赞 0 评论 449 浏览 评分:9.9
2997: 梯形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float s = (15+2…… 题解列表 2023年07月22日 0 点赞 0 评论 482 浏览 评分:6.0
2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;int pdsushu(int x){…… 题解列表 2023年07月22日 0 点赞 0 评论 442 浏览 评分:9.9
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;long long gaosi(lon…… 题解列表 2023年07月22日 0 点赞 0 评论 474 浏览 评分:9.9
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sum(long long n){ long long …… 题解列表 2023年07月22日 0 点赞 0 评论 322 浏览 评分:0.0
2880: 计算鞍点 摘要:解题思路:int main() { for(int i=1;i<=5;i++)//双重循环1 { for(int j=1;j<=5;j++)//双重循环2 …… 题解列表 2023年07月22日 0 点赞 0 评论 690 浏览 评分:9.9
2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100][100],n,sum=0;int main(){…… 题解列表 2023年07月22日 0 点赞 0 评论 479 浏览 评分:9.9
2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ fo…… 题解列表 2023年07月22日 0 点赞 0 评论 380 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hell…… 题解列表 2023年07月22日 0 点赞 0 评论 258 浏览 评分:2.0
蓝桥杯算法训练-大等于n的最小完全平方数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int n,m;int a[10005];…… 题解列表 2023年07月22日 0 点赞 0 评论 418 浏览 评分:2.0