题解列表

筛选

简单三角形面积c++题解(海伦公式)

摘要:解题思路:我们可以利用海伦公式#a,b,c 是三角形的边长#S 是面积我们可以利用勾股定理,求出边长。注意事项: 我们无法知道那个边是底和高,所以要用海伦公式参考代码:#include <iostre……

2780 奇偶判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d", &a);    if(a%2==0)    printf("e……

2778: 判断数正负

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int N;    scanf("%d",&N);    if(N>0)    printf("posit……

编程小白能看懂的c++98

摘要:解题思路:注意事项:参考代码:#include #include using namespace std; int main() { int q = 0; cin >> q; char ……

2783: 判断是否为两位数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    if(a/100==0&&a/10>0)    ……

1094基础解法(Python)

摘要:解题思路:注意split()的用法即可注意事项:空一行是print(),空两行是print(&#39;\n&#39;)参考代码:n = int(input())lst = []while True :……

1130一行解(Python)

摘要:解题思路:用内置函数解决问题,站在巨人的肩膀上不用再造轮子了注意事项:filter()用于筛选符合条件的对象元素,在Python中若为判断条件为True,则添加入filter类型中,用list类型打印……