题解 2774: 计算三角形面积(海伦公式)-详解 摘要:解题思路:1.输入部分:使用scanf函数读取三个点的坐标。2.计算三边长度:使用两点间距离公式(x2−x1)2+(y2−y1)2计算三角形的三边长度。…… 题解列表 2025年03月11日 2 点赞 0 评论 684 浏览 评分:10.0
这个代码简单些 摘要:解题思路:注意事项:可以输入输出多组数据,列题有误导,所以要加上跳出条件参考代码:while True: try: n=…… 题解列表 2025年03月11日 0 点赞 0 评论 461 浏览 评分:0.0
-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:n=int(input())sum=1for i in range(1,n+1): sum=sum*iprint(sum) &nbs…… 题解列表 2025年03月11日 0 点赞 0 评论 254 浏览 评分:0.0
< 蓝桥杯C++ > 2024年第十五届省赛真题-宝石组合 摘要:**参考代码链接:[[第十五届蓝桥杯C++B组真题-宝石组合]][1]**[1]: https://blog.dotcpp.com/a/104419---# 题目思路题目公式 …… 题解列表 2025年03月11日 5 点赞 0 评论 1519 浏览 评分:7.0
充分利用ACS码表减少代码量,简答易懂 摘要:解题思路:充分利用ACS码表减少代码量注意事项:参考代码:#include<iostream>#include<vector>usingnamespace&…… 题解列表 2025年03月11日 0 点赞 0 评论 225 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:```c#include #include int main() { double a,b,c; scanf("%lf%lf%lf",&a,&b,&c); doubl…… 题解列表 2025年03月11日 0 点赞 0 评论 657 浏览 评分:0.0
c语言---8除不尽的数,最优题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() {int i;for (i = 1; i < 10000; i++) {…… 题解列表 2025年03月11日 1 点赞 0 评论 320 浏览 评分:10.0
小白的代码你一定可以看懂,包容易理解 摘要:解题思路:先排序在判断m的奇数或者偶数在利用类似双指针的想法注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int g…… 题解列表 2025年03月10日 0 点赞 0 评论 203 浏览 评分:0.0
这个够简短了吧 摘要:解题思路:利用方向输出来从大到小输出注意事项:参考代码:#include<iostream>#include<algorithm>#include<vector>u…… 题解列表 2025年03月10日 0 点赞 0 评论 341 浏览 评分:0.0
C++查找单词树实现 摘要:其实这道题不用写树来模拟的,但谁让这道题属于树的分类呢```cpp#include #include #include using namespace std;st…… 题解列表 2025年03月10日 0 点赞 0 评论 232 浏览 评分:0.0