#include <bits/stdc++.h> using namespace std; signed main(void) { std::ios::sync\_with\_stdio(false); std::cin.tie(0); int x,y; for ( x =1;x<80+1;x++) { for ( y=1;y<40+1;y++) { if ((x+y==50)&&(x\*2+y\*4==160)) { cout<<x<<" "<<y; } } } return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account