简单三角形面积c++题解(海伦公式) 摘要:解题思路:我们可以利用海伦公式#a,b,c 是三角形的边长#S 是面积我们可以利用勾股定理,求出边长。注意事项: 我们无法知道那个边是底和高,所以要用海伦公式参考代码:#include <iostre…… 题解列表 2023年01月15日 0 点赞 2 评论 884 浏览 评分:5.0
2780 奇偶判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if(a%2==0) printf("e…… 题解列表 2023年01月15日 0 点赞 0 评论 237 浏览 评分:0.0
2778: 判断数正负 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; scanf("%d",&N); if(N>0) printf("posit…… 题解列表 2023年01月15日 0 点赞 0 评论 318 浏览 评分:9.9
编程小白能看懂的c++98 摘要:解题思路:注意事项:参考代码:#include #include using namespace std; int main() { int q = 0; cin >> q; char …… 题解列表 2023年01月15日 0 点赞 0 评论 191 浏览 评分:0.0
2783: 判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a/100==0&&a/10>0) …… 题解列表 2023年01月15日 0 点赞 0 评论 296 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if…… 题解列表 2023年01月15日 0 点赞 0 评论 243 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int product(int n){ int s; if(n==0) return s=1; else …… 题解列表 2023年01月15日 0 点赞 0 评论 224 浏览 评分:0.0
1094基础解法(Python) 摘要:解题思路:注意split()的用法即可注意事项:空一行是print(),空两行是print('\n')参考代码:n = int(input())lst = []while True :…… 题解列表 2023年01月15日 0 点赞 0 评论 350 浏览 评分:0.0
1130一行解(Python) 摘要:解题思路:用内置函数解决问题,站在巨人的肩膀上不用再造轮子了注意事项:filter()用于筛选符合条件的对象元素,在Python中若为判断条件为True,则添加入filter类型中,用list类型打印…… 题解列表 2023年01月15日 0 点赞 0 评论 445 浏览 评分:7.3
为啥这样通不过呀(我不理解) 摘要: #include #include #include int main() { char a[20]; gets(a); …… 题解列表 2023年01月15日 0 点赞 0 评论 441 浏览 评分:0.0