National Flag

Today is the 16th December, a red letter day of our national history. The whole country equipped wit…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

#include <stdio.h>

int main() {
int x,y,k;
scanf(“%d%d”,&x,&y);
k = x-y;
if(x == y || y>x || (k%2)) printf(“Not possible”);
else{
k = k/2;
printf(“%d %d\n”,5k,3k);
}
return 0;
}
Shows wrong answer in the third test. Please help.

Your approach is not correct, try this as an input 15 10 . the cut area will be bigger than the cloth according to your code

sir i have faced a problem … i have solved this problem 1 month ago . but i want to see my code but toph.co dont show my code but i really need to see my code… plz tell how i see my code.

For input 15 10, the code returns “Not possible”.

For your faced problem let me mention @hjr265 here.

@hjr265 sir plz help me i want to see my code… but its not possible now… help me sir