2 solutions

  • 0
    @ 2023-11-27 20:35:32
    #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;
    }
    

    Information

    ID
    347
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    3
    Tags
    # Submissions
    136
    Accepted
    73
    Uploaded By