实例: #include<bits/stdc++.h> using namespace std; int main() { int a,b,x,y; a=35;b=94; x=2*a-b/2; y=b/2-a; cout<<"x="<<x<<" y="<<y<<endl; return 0; }