求平均年龄 2794: 摘要:解题思路:#include <iostream>using namespace std;int main(){ int n; double sum =0; cin>>n; fo…… 题解列表 2024年01月09日 0 点赞 0 评论 466 浏览 评分:0.0
题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int sum,m,sun; sum=0; …… 题解列表 2024年01月09日 0 点赞 0 评论 482 浏览 评分:9.9
c代码记录之第k极值--水题 摘要:排序,注意m为负的情况 ```c #include int main() { int n,k,m,i,j,temp; scanf("%d%d",&n,&k); i…… 题解列表 2024年01月09日 0 点赞 0 评论 566 浏览 评分:0.0
N以内累加求和 2544 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int n;int main(){cin>>n;int s=(1+n)*n/2;cout<<s;}注意事…… 题解列表 2024年01月08日 0 点赞 0 评论 513 浏览 评分:0.0
偶数列举 2000: 摘要:解题思路:#include <iostream>using namespace std;int main(){ int n; cin>>n; for(int i=1; i<n;i+…… 题解列表 2024年01月08日 0 点赞 0 评论 474 浏览 评分:2.0
111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(in…… 题解列表 2024年01月08日 0 点赞 0 评论 435 浏览 评分:0.0
循环入门练习1 1764 摘要:解题思路:#include <iostream>using namespace std;int main(){ int sum =0; for(int i=1; i<=1000;i++)…… 题解列表 2024年01月08日 0 点赞 0 评论 501 浏览 评分:2.0
面向结果编程 #includeusingnamespacestd;typedefstructfff{intnum;intgrade;}fff;intmain(intargc,charconst*argv[]){intn,m;cin>>n>>m;fffa[n+m];for(inti=0;i 题解列表 2024年01月08日 0 点赞 0 评论 381 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; double b=0…… 题解列表 2024年01月08日 0 点赞 0 评论 442 浏览 评分:0.0
[C语言]c语言考试练习题_排序 解题思路:规律:每一行的开头数字,相邻相同数为一组,下一次重复为间隔得到规律123\124\134\234统计每一次不出现的数的下标,得到3,2,1,0是一个递减的过程,且下标0也要执行->最外循环8.当循环内的数等于6.出现的下标时不循环注意事项:下标0也要执行循环参考代码:#include 题解列表 2024年01月07日 0 点赞 0 评论 659 浏览 评分:0.0 « 12...329330331332333334335...29562957 »