题解 2775: 等差数列末项计算 摘要:解题思路:注意事项:参考代码:##include<iostream>using namespace std;int main(){ int a,b,n,m; cin>>a>>b>>n; …… 题解列表 2023年12月08日 0 点赞 0 评论 340 浏览 评分:0.0
等差数列求解 摘要:解题思路:首先求通项,后遍历从1到n之间的每一个数,将这些数代入通项,求和注意事项:循环的起点是i=1,也要注意sum需要有初始值参考代码:#include<stdio.h>int main(){ i…… 题解列表 2023年12月08日 0 点赞 0 评论 299 浏览 评分:0.0
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if (a%2==0)…… 题解列表 2023年12月08日 0 点赞 0 评论 289 浏览 评分:0.0
去掉空格(c语言新题解) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int removeSpace(char s[]){ int count=0; i…… 题解列表 2023年12月08日 0 点赞 0 评论 300 浏览 评分:0.0
感觉不错的方法 摘要:解题思路:用布尔函数判断是否为素数注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a = 0; cin >>…… 题解列表 2023年12月09日 0 点赞 0 评论 398 浏览 评分:0.0
编写题解 1160: 出圈(队列) 摘要:解题思路:把m-1个数加到后面之后,删除第一个数即可注意事项:参考代码:while True: try: n,m = map(int,input().split()) …… 题解列表 2023年12月09日 1 点赞 0 评论 418 浏览 评分:0.0
C语言简单for循环求阶乘 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long long a,b=1,sum=0; int i; scanf("%lld",&a); f…… 题解列表 2023年12月09日 0 点赞 0 评论 292 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;struct date{ int n,y,r;};int m[13]= {0…… 题解列表 2023年12月09日 0 点赞 0 评论 454 浏览 评分:0.0
c语言利用数组 摘要:解题思路:#includeint main(){ int month_consume[12]; //每月的消费 int month_save=0; //单月的剩余 float a…… 题解列表 2023年12月09日 0 点赞 0 评论 1790 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;struct student{ char xuehao[10000]; …… 题解列表 2023年12月09日 0 点赞 0 评论 1712 浏览 评分:0.0