题解列表

筛选

超级简便的python

摘要:解题思路:利用map()和sum()注意事项:参考代码:s=list(map(int,input().split()))print(sum(s))……

C语言-公约公倍

摘要:解题思路:最小公倍数易求,最大公约数难求,要用递归,为避免用递归的麻烦,直接先求最小公倍数,再通过最小公倍数与最大公约数之积=输入的两数乘积得出最大公约数注意事项:参考代码:#include<stdi……

题目 2774: 计算三角形面积

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { double x1……

已知三点求面积

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%……

题目 2750: 字符菱形

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h> using namespace std; int main() { char c;……

编写题解 2810: 鸡尾酒疗法

摘要:解题思路:注意事项:参考代码:n=int(input())jl,jx=map(int,input().split())j=jx/jllist1=[]for i in range(n-1):    gl……

多边形内角和

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n; cin>>n; int a[n-1]; int sum1=(n-2)*180……

函数式编程思想解决

摘要:解题思路: 分别定义求解最大公约数和最小公倍数的函数,然后用类似map(int,input().spilt())等语句接受输入,定义main函数来打印这两个数注意事项: 注意函数接受的参数类型是数而非……