陈教主的三角形-题解(C语言代码)
摘要:```c
#include
int main()
{
int a,b,c;
while((scanf("%d%d%d",&a,&b,&c))!=EOF)
{
……
陈教主的三角形 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int mai……
陈教主的三角形 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; while(~scanf("%d %d %d", &a,&b,&c)){ if(a ……
陈教主的三角形 (C++代码)
摘要:解题思路:很简单的一道题,不知道为什么通过率这么低注意事项:参考代码:#include <deque>#include <algorithm>#include <iostream>#include <……
陈教主的三角形 (C/C++语言代码)不难啊,怎么这题正确率那么低
摘要:解题思路: 就是定义三个变量作为三条边,然后依次判断三条边是否两两大于第三条边就可以了,本题目没有难度,怎么正确率那么低呢?参考代码:【C++,不过修改成C语言也是分分钟的事情】#inc……
陈教主的三角形 (C++代码)
摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#define N 1000
using namespa……
陈教主的三角形 (C语言代码)
摘要:#include "stdafx.h"int triangle(int a, int b, int c){ if ((a + b > c) && (a + c) > b && (b + c) ……
陈教主的三角形 (Java代码)
摘要:解题思路:注意事项:参考代码:public class 陈教主的三角形_水到不能再水 { public static void main(String[] args) { // TODO Auto-……
陈教主的三角形 (C语言代码)输入的边长应该先排序后进行比较
摘要:参考代码如下:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//将三个数从小到大排序
void sort(int *……