C语言 结构体+主函数一维数组 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Student{ char name[30] ; //名字 int average ; //平均分…… 题解列表 2024年12月05日 0 点赞 0 评论 190 浏览 评分:0.0
循环中乘方,为取末3位,对应取模10^3 摘要:解题思路:1.循环中乘方2.为取末3位,对应取模10^33.输出前面的填充,%03d\n格式注意事项:参考代码:#include<iostream> using namespace std; in…… 题解列表 2024年12月05日 0 点赞 0 评论 140 浏览 评分:0.0
循环乘以10再求模,直到移动到整除结束 摘要:解题思路:1.转换为分数核心逻辑是循环乘以10再求模,直到移动到整除结束2.遍历循环2步:逐位计算:x=a*10/b;更新余数:a=a*10%b;注意事项:更新的次数由n决定。参考代码:#includ…… 题解列表 2024年12月05日 0 点赞 0 评论 191 浏览 评分:0.0
1687: 数据结构-字符串连接 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符向量q1,用于存储拼接后…… 题解列表 2024年12月05日 0 点赞 0 评论 140 浏览 评分:0.0
1121: C语言训练-8除不尽的数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b =1,a,c,d,f,g; while(b++){ d =b/8; f = d/8; if (…… 题解列表 2024年12月04日 2 点赞 0 评论 374 浏览 评分:0.0
[编程入门]自由下落的距离计算--巨无敌容易看懂(C语言) 摘要:解题思路:将下落过程加上后,将每落地一次变成落地前的一半并加到路程中,并注意最后一次反弹时不加入到路程中注意事项:要注意变量的定义参考代码:#include<stdio.h>int main(){ …… 题解列表 2024年12月04日 6 点赞 0 评论 918 浏览 评分:10.0
利用最小公约数求最大公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gony(int m,int n){ int r; if(m==n) return m; else while((r=m%n…… 题解列表 2024年12月04日 0 点赞 0 评论 186 浏览 评分:0.0
c语言代码易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int m,n,sum=0; scanf ("%d %d",…… 题解列表 2024年12月04日 0 点赞 0 评论 284 浏览 评分:2.0
数据结构-Big Bang 字符串暴力硬解!!! 摘要:解题思路: 喜欢暴力 嘿嘿嘿 !注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量,用于存…… 题解列表 2024年12月04日 0 点赞 0 评论 134 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int b; for (b = 100;b<1000;b++) { if…… 题解列表 2024年12月04日 0 点赞 0 评论 370 浏览 评分:0.0