In the problem C (The Trail), I was asked why I kept the Target sum x value to 0. We saw that a non-zero value of x doesn't work for test cases where n != m. I apologise that I couldn't formally show a proof in the PCD as I incorrectly thought it would work for all values. (And luckily chose 0 which worked). Here is a formal proof why no value of x != 0 works when n != m. Suppose, all the row sums and column sums are x. So, Sum of all cells in the grid = x*n (No. of rows * Sum of each row) Also, Sum of all cells in the grid = x*m (No. of columns * Sum of each Column) That means, x*n = x*m. But since n != m, It's true only when x = 0.
I was having the same doubt during contest I took 1e11 but it didn't work then i luckily took zero it worked,but did not understand the intuition behind taking zero but now it's clear.. THANK YOU
@@BoredToDeath2357 see the question itself says that there can be multiple solutions (probably hinting towards the case of m=n) but we can say one thing for sure that x=0 would always work regardless becuase of the way the path moves, i.e downwards or rightwards. becuase the path movies only downwards or upwards it is always possible to make all row and coloumn's sum as zero, hence x=0 is always one of the answers for sure in any case.
Please don't allow these disturbing elements to interrupt in between your explanation. He is just creating disturbance and noise for the others and nothing else.
1st: abs(a-b)%2==0: Yes else: no
In the problem C (The Trail), I was asked why I kept the Target sum x value to 0. We saw that a non-zero value of x doesn't work for test cases where n != m.
I apologise that I couldn't formally show a proof in the PCD as I incorrectly thought it would work for all values. (And luckily chose 0 which worked).
Here is a formal proof why no value of x != 0 works when n != m.
Suppose, all the row sums and column sums are x.
So, Sum of all cells in the grid = x*n (No. of rows * Sum of each row)
Also, Sum of all cells in the grid = x*m (No. of columns * Sum of each Column)
That means, x*n = x*m.
But since n != m, It's true only when x = 0.
I was having the same doubt during contest I took 1e11 but it didn't work then i luckily took zero it worked,but did not understand the intuition behind taking zero but now it's clear.. THANK YOU
this was the logic I was lacking
can u explain last sample test case of scarecrow in detail
@@BoredToDeath2357 see the question itself says that there can be multiple solutions (probably hinting towards the case of m=n) but we can say one thing for sure that x=0 would always work regardless becuase of the way the path moves, i.e downwards or rightwards. becuase the path movies only downwards or upwards it is always possible to make all row and coloumn's sum as zero, hence x=0 is always one of the answers for sure in any case.
@ i think input arrays would be such only that they give solutions
Bhalo explanation diyecho sob questions er 👍🏻
very clear and nice explanation sir
Great explanation for problem D.
for first question i calculated difference in their position if its odd print no else yes
thanks tle hit pupil in the contest
worwst contets for me
i wan only able to solve 1 question gneerally i had solved 2
sir how can i access the zoom meeting??
Please fill the Feedback form for PCD: forms.gle/8m1bVCzwLqvkDZ23A
Guys can you tell me the name of website where we can see rating of the contest questions
clist
@@Travel-s5e Thanks
Please don't allow these disturbing elements to interrupt in between your explanation. He is just creating disturbance and noise for the others and nothing else.
I solved A problem like this:
int main()
{
int t;
cin >> t;
while (t--)
{
int n, a, b;
cin >> n >> a >> b;
if (abs(a - b) % 2 == 0)
{
cout
same
same
Wonderful PCD Soumojit
thx for the upload
From c it was exponential
bhai C kis rating ka tha meri 950 rating hai div2 c nahi hota 😢
@@ankitghanshala7382 around 1400
Worst contest for me in last 3 months. Dropped from pupil with -51
You will improve just don't quit
Yes!! Worst contest for me as well. Got -72
If you are pupil then why are you giving Div 2 contest ?
@@ayaaniqbal3531 brother ngl if you gonna think like this you'll hardly improve.
means i should give all contest without regarding my rating ? by the way thanks i was not knowing that .