标签:思路 输入 using ace bsp namespace iostream 区间 std
1 #include <iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 int a,b,c,d; 8 while(cin>>a>>b>>c>>d) 9 { 10 if(d == c-a-b) 11 { 12 int A = (a+c)/2; 13 int B = (c-a)/2; 14 int C = (c-a)/2 - b; 15 cout<<A<<" "<<B<<" "<<C<<endl; 16 } 17 else 18 { 19 cout<<"No"<<endl; 20 } 21 } 22 }
标签:思路 输入 using ace bsp namespace iostream 区间 std
原文地址:http://www.cnblogs.com/qqky/p/6796071.html