题目 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { double x1…… 题解列表 2024年02月28日 0 点赞 0 评论 186 浏览 评分:0.0
已知三点求面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%…… 题解列表 2024年02月28日 0 点赞 0 评论 556 浏览 评分:6.0
题目 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h> using namespace std; int main() { char c;…… 题解列表 2024年02月28日 0 点赞 0 评论 371 浏览 评分:0.0
编写题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:n=int(input())jl,jx=map(int,input().split())j=jx/jllist1=[]for i in range(n-1): gl…… 题解列表 2024年02月28日 0 点赞 0 评论 214 浏览 评分:0.0
多边形内角和 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n; cin>>n; int a[n-1]; int sum1=(n-2)*180…… 题解列表 2024年02月28日 0 点赞 0 评论 267 浏览 评分:9.9
二维数组,第一列为数字的绝对值,第二列为正负的标志,-1为负,1为正,最后输出时,每行两个数字相乘即可 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args…… 题解列表 2024年02月28日 0 点赞 0 评论 199 浏览 评分:0.0
编写题解 2804: 与指定数字相同的数的个数 摘要:解题思路:利用list.count()注意事项:参考代码:N,m=map(int,input().split())list1=list(map(int,input().split()))print(l…… 题解列表 2024年02月28日 0 点赞 0 评论 231 浏览 评分:0.0
函数式编程思想解决 摘要:解题思路: 分别定义求解最大公约数和最小公倍数的函数,然后用类似map(int,input().spilt())等语句接受输入,定义main函数来打印这两个数注意事项: 注意函数接受的参数类型是数而非…… 题解列表 2024年02月28日 0 点赞 0 评论 217 浏览 评分:0.0
天才的写法 摘要:解题思路:拆分为不同的2的幂次数,可以先算出来比n小的2的所有幂次,在进行取数操作注意事项:参考代码:n = int(input())i = 1a = []b = []while 2**i <= n:…… 题解列表 2024年02月28日 0 点赞 0 评论 317 浏览 评分:9.9
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:n=int(input())jins=yins=tongs=0for i in range(n): list1=list(map(int,input().split…… 题解列表 2024年02月28日 0 点赞 0 评论 262 浏览 评分:0.0