#40757: 求抓錯


yp11251156@yphs.tp.edu.tw (908-36許安荀)


#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,d;
    cin>>a;
    while(a--)
    {
     cin>>b>>c>>d;
     if((b+c<d)||(c+d<b)||(b+d<c)) cout<<0<<endl;
     else if(a==b||b==c||a==c) cout<<1<<" "<<1<<endl;
     else cout<<1<<" "<<0<<endl;
     }
}

#40964: Re: 求抓錯


cges30901 (cges30901)


1. 如果兩個邊相加剛好等於第三個邊,也無法圍成三角形

2. a是測資數量,你打錯了