换一个高精度的就行 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void main(){ double n,m,s; scanf("%lf%lf",&n,&m); s=n-0.8*m; printf…… 题解列表 2023年11月15日 2 点赞 0 评论 613 浏览 评分:10.0
[编程入门]三个数最大值 (c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using std::cout;int main(){ int a,b,c; std::cin>>a>>b>>c; …… 题解列表 2023年11月15日 0 点赞 0 评论 501 浏览 评分:0.0
函数求解最大公约数与最小公倍数 ###使用*函数求解*---最大公约数与最小公倍数-------------**1.写入两个函数,最大公约数函数和最小公倍数函数,然后用主函数调用这两个函数**-**2.最大公约函数,是用了更相减损法,判断a和b哪个大,用大数减去小数,再将减去得到的值赋予大数的位置, 题解列表 2023年11月15日 0 点赞 0 评论 565 浏览 评分:9.9
C语言训练-字符串正反连接(用指针) 摘要:```c #include int main() { char a[102]; scanf("%s",a); printf("%s",a); char *p=a; while…… 题解列表 2023年11月15日 0 点赞 0 评论 524 浏览 评分:0.0
奥运奖牌计数(不用二维数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int gold=0; int silve…… 题解列表 2023年11月15日 0 点赞 0 评论 482 浏览 评分:9.9
成绩排序(答案错误只有50分的试试把name数组空间改为101) 参考代码:```c#include#includestructstudent{charname[101];//字符串后面要有个空intage;intscore;};voidswap(structstudent*a,structstudent*b)//交换{structstudentt;t=*a;*a= 题解列表 2023年11月15日 1 点赞 1 评论 470 浏览 评分:10.0
萌新出品 2998: 电影票 摘要:参考代码:#include<iostream>using namespace std;int main(){ int x; cin >> x; cout << x <<" "<< 10 …… 题解列表 2023年11月15日 0 点赞 1 评论 467 浏览 评分:9.9
11231231231241232131 解题思路:1注意事项:1参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);intn=scanner.nextInt() 题解列表 2023年11月15日 0 点赞 0 评论 766 浏览 评分:8.0
[编程入门]最大公约数与最小公倍数(C语言) 摘要:解题思路:注意事项:参考代码:方法一:#include<stdio.h>int main(){ int m,n,a,b; scanf("%d %d",&m,&n); a=m; …… 题解列表 2023年11月15日 0 点赞 0 评论 457 浏览 评分:0.0