陈教主的三角形-50%错误的,有可能是把判断的逻辑搞混了
摘要: #include
int main(void)
{
int a = 0, b = 0, c = 0;
while (EOF != sc……
陈教主的三角形-题解(C语言代码)
摘要: //1387多行测试数据,每行包含三个整数a、b、c(0= b && a >= c)
triangle(a, b, c);
else if (b >= a && ……
陈教主的三角形-题解(C语言代码)
摘要:```c
#include
int main()
{
int a,b,c;
while((scanf("%d%d%d",&a,&b,&c))!=EOF)
{
……
陈教主的三角形 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; while(~scanf("%d %d %d", &a,&b,&c)){ if(a ……
陈教主的三角形 (C/C++语言代码)不难啊,怎么这题正确率那么低
摘要:解题思路: 就是定义三个变量作为三条边,然后依次判断三条边是否两两大于第三条边就可以了,本题目没有难度,怎么正确率那么低呢?参考代码:【C++,不过修改成C语言也是分分钟的事情】#inc……
陈教主的三角形 (C语言代码)
摘要:#include "stdafx.h"int triangle(int a, int b, int c){ if ((a + b > c) && (a + c) > b && (b + c) ……
陈教主的三角形 (C语言代码)输入的边长应该先排序后进行比较
摘要:参考代码如下:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//将三个数从小到大排序
void sort(int *……