ZIO 2017 Discussion

In Delhi there were about 400 students but the location and the ambience was very bad.

No i mean the explanation of question 10 11 12

Btw i was getting 595 in q.6

Plz post the questions as well if possible

@siddharth2000 Oh sorry.

My approach wasnā€™t very elegant.

There are 3 stages, to find all possible ways to select substring

  1. 0011
  2. 00110011
  3. 001100110011

For 1) I calculated at each position of the binary string, the no. of 0011 ending at that index. Then added the values at each index

For 2) In addition to what I did for 1), I calculated at each position of the binary string, the no. of 0011 starting at that index.

Now, at each index, multiplied no. of 0011 ending at that index, and no. of 0011 starting at the next index. Added up.

For 3), not too clear to put it in black and white, since the test cases could have been more complicated,

Find the index at which the first 0011 ends.

Find the index at which the last 0011 starts.

Now look at the middle elements, see how many 0011 you can get. This is your answer for stage 3.

Let me know if thereā€™s any flaw. I also most likely made careless calculation mistakes while doing the above.

1 Like

Hey the ones who had problems during ZCO/ZIO should mail it to the authoritiesā€¦ I am in class 11 and am expecting 40-50.
Q4 to Q 10 were the easiest and the correct answers were posted. For Q1 to Q3, I messed up. For the last answer I too got 21, Something I do not remember, and something in 100s. Iā€™d say the cut off should be around 40 for 10 and below, 45 for 11, and 50 for 12. Good Luck
P.S. Pls post your expected marks, class and what you felt should be the cut-off.

2 Likes

Hey the ones who had problems during ZCO/ZIO should mail it to the authoritiesā€¦ I am in class 11 and am expecting 40-50.
Q4 to Q 10 were the easiest and the correct answers were posted. For Q1 to Q3, I messed up. For the last answer I too got 21, Something I do not remember, and something in 100s. Iā€™d say the cut off should be around 40 for 10 and below, 45 for 11, and 50 for 12. Good Luck
P.S. Pls post your expected marks, class and what you felt should be the cut-off.

I think i might have misinterpreted the last 3 questions as for question 10 my answer was 81 instead of 21.

Could you please post your solution to the 4th problem? It would help to know better approaches :slight_smile:

Guys my 8 out of 12 questions are correctā€¦ i.e. 50 out of 80ā€¦ will i qualifyā€¦??
The cutoff of the previous years was less than 50ā€¦ soā€¦??

Hey, iā€™m a class 8th student too.
I took part in ZCO and i think i will score around 50 marks.
will i be able to qualify?

P.S. when are the results coming?

1 Like

The answers for the last question should be something like 21, 144, 154.

The expected solution was using dynamic programming :

dp[i][0] denotes number of subsequences in the first (i) indices of the string that end with ā€œ0ā€

dp[i][1] denotes the same for ā€œ00ā€

dp[i][2] denotes the same for ā€œ001ā€

dp[i][3] denotes the same for ā€œ0011ā€

What we seek is just dp[stringLength][3]


(http://pastie.org/pastes/10966296/text?key=zzyanb8jua9cfjomrklrq)
1 Like

I literally did the ditto same thing by making a dp matrice.
But because of some calculation mistake, I got the second part wrong.

Ah, thatā€™s ok. You did exceptionally well, especially considering that youā€™re an 8th grader.

2 Likes

Paper was significantly easier than usual this year. Cutoff should be around 50 for 12 in my opinion.

How is everyone getting a larger answer for 4c than for 4b??

Even though the 4c binary string is longer than the 4b one, there are some bits in 4c which cannot appear in any good number. I canā€™t remember the exact strings, but for instance, the second bit in the 4c string was a 1 which has to be dropped for all possible good numbers since there must be at least two zeroes before a 1 in a good number and it is impossible to have two zeroes before the second position. Similarly, the zeroes at the end of the 4c string must also be dropped since they cannot be followed by a 1. Such reductions make the 4c string a sub string of the similarly reduced 4b string. (Do I make sense?)

I canā€™t remember my 11 & 12 answers because I changed them at the last minute, realizing I had been undercounting. But Iā€™m relatively confident of this much; so Iā€™m surprised that everyone seems to have larger 4c answers than 4b ones.

Did anyone else face problems with the interface during ZIO?

All of you are getting answer for question 2 part 2 as 10, but I think it is 9. Based on my memory I remember the values were
1-6
2-7
3-7
4-8
5-8
6-9
And a few more with 9.
So if 1 seeks for 3 rounds, 2 and 3 seek for 2 rounds each and 4 and 5 seek for one round each, I think every one will be satisfied.
Please point out if I have made a mistake.
All the best to everyone for results !

For Ques 6 is the answer 593 or 599.
I see both answers, Can someone confirm?

anyone remember testcases of 1st question or atleast the example. plz post them if u do remember