高斯求和 (c++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n; int s=(1+n)*n/2;…… 题解列表 2023年02月22日 0 点赞 0 评论 485 浏览 评分:9.9
两种方法,简单易懂!!!! 摘要:解题思路:注意事项:数组可以不开那么大。参考代码:#include<bits/stdc++.h>using namespace std;//int a,b,c;int n,a[101][101],s,…… 题解列表 2023年02月22日 0 点赞 0 评论 517 浏览 评分:9.9
求和很简单,只要掌握方法就可以 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;//s要赋初值!!! cin>>n>…… 题解列表 2023年02月22日 0 点赞 0 评论 603 浏览 评分:9.9
1045: [编程入门]自定义函数之整数处理 摘要:```cpp #include using namespace std; /* 题目描述 输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。 写三个函数; ①输入…… 题解列表 2023年02月22日 0 点赞 1 评论 338 浏览 评分:9.9
@更向天涯 小李子不行啊!!! 摘要:解题思路:注意事项:cin、cout一定要改成scanf和printf不然会超时!!!!参考代码:#include<bits/stdc++.h>using namespace std;int a[10…… 题解列表 2023年02月22日 0 点赞 6 评论 366 浏览 评分:9.9
2864: 单词替换 STL版 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <sstream> // #include <cstdio> // #include <algorithm…… 题解列表 2023年02月22日 0 点赞 0 评论 437 浏览 评分:9.9
我觉得比楼上写的还简单^_^ 摘要:解题思路:注意事项:参考代码:#include <iostream> // #include <sstream> // #include <cstdio> // #include <algori…… 题解列表 2023年02月22日 0 点赞 1 评论 353 浏览 评分:9.9
记录相同字符的必会想法 摘要:解题思路:字符串有空格 用getline输入 然后统计相同字符的个数 比较一下注意事项:这里大小写忽略 统一一下即可参考代码:#include<bits/stdc++.h>using namespac…… 题解列表 2023年02月22日 0 点赞 0 评论 623 浏览 评分:9.9
<计算机二级>数组的平均值计算(C语言) 摘要:#include<stdio.h> int main() { int arr[10],sum=0,count=0; int ave; for (int i = 0; i < 10; i…… 题解列表 2023年02月22日 0 点赞 0 评论 339 浏览 评分:9.9
怎么又没人??那我来吧!!!! 摘要:```cpp #include char a[40000]; int b[300],c[300],d[300]; int main(){ gets(a); int i,j=0,k=0,…… 题解列表 2023年02月22日 0 点赞 0 评论 584 浏览 评分:9.9