题解列表

筛选

感谢支持,谢谢你们的支持

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double x;    cin >>x;    i……

感谢支持,谢谢你们的支持

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){       double a,b,c;    cin >>……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n;    scanf("%x",&n);    printf("%d",n);    retur……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student{ float score[7]; char name[50];};int main(){ struct s……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i, j; scanf_s("%d", &n); for (i = 0; i < n; i++) ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){    char str[301];    fgets(str, size……

数据结构-字符串插入

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int i;    int t=0;    int j=0;    c……

辗转相除法

摘要:解题思路:辗转相除法,最小公因数用数学表示为: gcd(a, b) = gcd(b, a mod b)。最大公倍数为两数的积除以最小公因数。注意事项:因为我这里gcd函数的第一个输入值设置为较小的值,……