delete pics to save space
This commit is contained in:
21
history_source/ccf 入门篇/U3/3.3.2.cpp
Normal file
21
history_source/ccf 入门篇/U3/3.3.2.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
float a,b,c;
|
||||
while(true)
|
||||
{
|
||||
cin>>a>>b>>c;
|
||||
if(!((a+b>c)&&(a+c>b)&&(b+c>a))) cout<<"No!"<<endl;
|
||||
else
|
||||
{
|
||||
if(a==b&&a==c) cout<<"<EFBFBD>ȱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
else
|
||||
{
|
||||
if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c==a*a)) cout<<"ֱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
else cout<<"һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user