1 #include<iostream> 2 using namespace std; 3 int main(){ 4 float o,h,l,c; 5 while(cin>>o>>h>>l>>c){ 6 if(c<o) 7 cout<<"BW-Solid"; 8 else if(c>o) 9 cout<<"R-Hollow"; 10 else 11 cout<<"R-Cross"; 12 13 if(l<o&&l<c&&h>o&&h>c) 14 cout<<" with Lower Shadow and Upper Shadow"; 15 else if(l<o&&l<c) 16 cout<<" with Lower Shadow"; 17 else if(h>o&&h>c) 18 cout<<" with Upper Shadow"; 19 cout<<endl; 20 } 21 return 0; 22 }
分支-15. 日K蜡烛图(15),布布扣,bubuko.com
原文地址:http://www.cnblogs.com/gnodidux/p/3819958.html