编写题解 2774: 计算三角形面积 解题思路:注意事项:参考代码:importmathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt(math.pow(x1-x2,2)+math.pow(y1-y2,2))b=math.sqrt(math.pow(x2-x3, 题解列表 2024年02月26日 0 点赞 0 评论 566 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:for i in range(100, 1000): temp = i num1 = temp % 10 temp //= 10 num2 = temp % 10 tem…… 题解列表 2024年02月26日 0 点赞 0 评论 500 浏览 评分:0.0
C语言简洁易懂解法 摘要:解题思路:最大值就是普通金属完全冶炼成特殊金属,然后因为要满足所有的情况,取每组的最小值 最小值就是普通金属完全冶炼成特殊金属的数目+1,这个值就是一个临界值,这个值再+1…… 题解列表 2024年02月26日 0 点赞 0 评论 940 浏览 评分:8.0
2767: 计算多项式的值 摘要:解题思路: 先思考数学中的式子,拿到C语言中该如何解决 a,b,c,d,x 是我们自己输入的是给定的值 X的三次方就是3个X相乘 X*X*X 那就好解决咯参考代码:#include<s…… 题解列表 2024年02月26日 1 点赞 0 评论 1322 浏览 评分:10.0
编写题解 2772: 苹果和虫子-while循环 摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) …… 题解列表 2024年02月26日 0 点赞 0 评论 668 浏览 评分:0.0
奇数单增序列C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,p,t; scanf("%d",&N); int a[N+1],b[N+1],i,…… 题解列表 2024年02月26日 0 点赞 0 评论 516 浏览 评分:0.0
f-string编写题解 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:a=input()for i in range(3): print(' '*(2-i), end='') print(f…… 题解列表 2024年02月26日 1 点赞 0 评论 681 浏览 评分:0.0
Java有规律的数列求和 解题思路:假设第一项的分子为a,分母为b,则第一项为a/b,第二项为(a+b)/a,第三项为((a+b)+a)/(a+b)......总结一下:后一项的分子为前一项分子分母的和,后一项的分母为前一项的分子。注意事项:第一个数字初始时要设好2.0/1参考代码:importjava.util.Scanne 题解列表 2024年02月26日 0 点赞 0 评论 605 浏览 评分:0.0
谁考了第k名C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k,j,m; scanf("%d %d",&n,&k); int a[n+1],i…… 题解列表 2024年02月26日 2 点赞 0 评论 658 浏览 评分:10.0
暴力求解最大公约数和最小公倍数 参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);intm=scanner.nextInt();intn=scanne 题解列表 2024年02月26日 0 点赞 0 评论 789 浏览 评分:9.9