题解列表

筛选

C语言 结构体+主函数一维数组

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Student{    char name[30] ;    //名字    int average ;    //平均分……

循环乘以10再求模,直到移动到整除结束

摘要:解题思路:1.转换为分数核心逻辑是循环乘以10再求模,直到移动到整除结束2.遍历循环2步:逐位计算:x=a*10/b;更新余数:a=a*10%b;注意事项:更新的次数由n决定。参考代码:#includ……

1687: 数据结构-字符串连接 vector

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义一个字符向量q1,用于存储拼接后……

c语言代码易懂

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int m,n,sum=0;    scanf ("%d %d",……

普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int b; for (b = 100;b<1000;b++) { if……