第1个回答 2016-01-24
#include<stdio.h>
void main()
{
int T = 2, a = 0, b = 0, c = 0;
int i = 0;
for(i = 1; i <= T; i++)
{
printf("请输入第%d组数:", i);
scanf("%d%d%d", &a,&b,&c);
if(a == b && a != c && (a+b)>c)
{printf("YES\n");}else{printf("NO\n");}
}
}本回答被网友采纳
第2个回答 2016-01-24
#include<stdio.h>
int main(){
int n,i,j;
int a[20][3];
scanf("%d", &n);
for (i = 0; i < n; i++){
for (j = 0; j < 3; j++)
scanf("%d", &a[i][j]);
if (a[i][0] == a[i][1] && a[i][0] == a[i][2])
a[i][0] = -1;
else
a[i][0] = -2;
}
for (i = 0; i < n; i++){
if (a[i][0] == -1)
printf("No");
else
printf("Yes");
}
return 0;
}