结构体之成绩统计2(小白也能看懂) 摘要:解题思路: 先定义结构体,再for循环给结构体赋值然后定义三个sum分别计算三门科目总分,再通过每门科目总分求每门的平均分定义一个·变量,然后通过for循环确定最高分为多少,然后通过for循环比对…… 题解列表 2024年12月06日 0 点赞 0 评论 564 浏览 评分:0.0
链表数据求和操作 摘要:# 链表数据求和操作 ```c++ #include #include #include #include using namespace std; // 定义链表节点结构…… 题解列表 2024年12月06日 1 点赞 0 评论 526 浏览 评分:0.0
[编程入门]链表合并 摘要:# 链表合并 ```c++ #include #include #include #include using namespace std; struct linknode…… 题解列表 2024年12月06日 0 点赞 0 评论 702 浏览 评分:0.0
简化abc关系,找到集中遍历的单一对象 摘要:解题思路:1.简化abc关系,找到集中遍历的单一对象:转化表达的b2.用整数做卡点区分循环,注意b的值是求余,筛选却要用求模3.注意a的范围限制。有一个隐藏点需要验证,即如果a=14的临界,其实不满足…… 题解列表 2024年12月06日 0 点赞 0 评论 328 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int a[101];int main(){ int n,sum=0; scanf("%d"…… 题解列表 2024年12月06日 0 点赞 0 评论 660 浏览 评分:0.0
无聊的星期五 摘要:while True: x, y = list(map(int, input().split())) if x == 0 and y == 0: break print…… 题解列表 2024年12月06日 0 点赞 0 评论 553 浏览 评分:0.0
函数求解最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gcd(int m, int n);int lcd(int m, int n);int main(void){ int m…… 题解列表 2024年12月06日 4 点赞 0 评论 1933 浏览 评分:10.0
数组回文串 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string.h>int main() { char arr [255]; …… 题解列表 2024年12月06日 0 点赞 0 评论 385 浏览 评分:0.0
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if((a<60&&b>60)…… 题解列表 2024年12月06日 0 点赞 0 评论 250 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a[n],b[n],s,sum=0; scanf("%d",&n); for(…… 题解列表 2024年12月06日 0 点赞 0 评论 284 浏览 评分:0.0