MEANMEDIAN - Editorial

what is y==0

https://www.codechef.com/viewsolution/73490455
Can anyone tell me whats wrong in this logic…Why is it getting WA?

What’s wrong in this solution?

#include
using namespace std;

int main() {
// your code goes here
int t;
cin>>t;
while(t–){
int x,y;
cin>>x>>y;

    cout<<0<<" "<<y<<" "<<(3*x - y)<<" "<<endl;
}
return 0;

}

The output format says: “If multiple answers exist, output any.”

So in one solution, printing three numbers as [0, Y , 3X-Y] should give the correct output.

Why is it showing WA?

Let me know what is missing.
Link: CodeChef: Practical coding for everyone

[CodeChef: Practical coding for everyone]

I don’t understand why i get NZEC. Can anyone please explain what’s wrong in my solution?

here we take the 1st two integer equal i.e. y… but why ?? If I took x,y,3x-y-x then it gives wrong answer

what’s wrong in this … pls tell.

        cin>>x>>y;
        b = y;
        c= b + 800;
        a = (x*3) - c - b;

Can anyone please help me what is wrong with the solution-
Solution: 74029452 | CodeChef

I think only one test case is failing.

I manage to get the solution now…

One query -
Mean - 5, median -5
accepted answer - 5,5,5
WA - 0,5,10 → Why this one is not accepted?
And in the Problem output format, “If multiple answers exist, output any.” is mentioned.

y did u take a=-600