ANUDTC Divide the cake

Heading

Hello,

I’ve tried many times this problem(divide the cake) and it is giving wrong answer.My code is working for all the test cases given in the problem.I want to know why it is giving worng answer when I submit.If there is any otheer test case then please give me .

Thanks

there have to be a space between the answer, “y y y” not “yyy”

There should be spaces in between answer to different questions .
Here is your corrected code.

    #include <iostream>

    using namespace std;

    int main()
    {
        int t, n;
        cin>>t;
        while(t--)
        {
	        cin>>n;
	        if(360 % n == 0)
		        cout<<"y ";
	        else
		        cout<<"n ";
	        if(n > 360)
		        cout<<"n ";
	        else
		        cout<<"y ";
	        if(n > 26)
		        cout<<"n"<<endl;
	        else
		        cout<<"y"<<endl;
        //t--;
        }

return 0;

}

//