My approach for the first problem was to store all the positions of Zero(i,j) and count the number of zero and
if(count was equal to N*M or (N*M)-1){
while(q--) cout<<0<<endl;
}
else if(count==0){
while(q--) cout<<1<<endl;
}
else{
check for every i,j : a<=Zero(i)<=c && b<=Zero(j)<=d
if yes then print 0 and return;
else print 1
}
I scored 90 on problem 1
this approach was giving TLE on only Subtask 6-Test 2 which was n=2x10^5 and q=2x10^5 which was the max constraints.
can someone tell me the correct approach and where i went wrong.
Yes this will work but it will give TLE for large input sizes.
Better approach would be using 2d prefix sum.
pre[i][j] = number of ‘0’ till i, j
on https://iarcs.org.in there is a question related to 2d prefix sum.
link: https://www.iarcs.org.in/inoi/online-study-material/topics/prefix-sums-ramus-mango-trees.php
3 3
1 1 0
1 1 1
1 1 1
1
1 1 2 2
Ans =1
Is your code working on this testcase.
Your code will give 0 as a answer.
Yes it will work because the zero is at (1,3) so i=1,j=3 and a=1,b=1,c=2,d=2 and as per the conditions a<=i<=c is true but b<=j<=c is not true so it will give ans as 1
I made program to check whether result is announced or not
I got frustrated by checking iarcs website to know whether result is announced or not
Github link (steps about how to use it) - GitHub - Ankitsinghprograms/result-late-ZCO2022
Task- I made code readability very bad try to make it even more worse
#Task- Make code readability even more worse
#Warning- I dont know what i have written
# My writing is more poor than code readability
import requests
import webbrowser as webbrowser
import time
from os import system,name
def blahblahblah():
if(name=='nt'):
system('cls')
else:
system('clear')
noturl="https://www.iarcs.org.in"
every60secondinINDIA1minutepasses_iarcscanstopthis=60
def ofcourseonep():
webbrowser.open_new(noturl)
# Idk what i have written below
time.sleep(int(60*60/60-1+1-25-35+20+10+15-10-35+17-12+11-7-10+6-4+9))
webbrowser.open_new("https://www.iarcs.org.in/inoi/current.php#zco2022")
iamafraidofdisqualifying=1
c=0
while(iamafraidofdisqualifying):
notweb=requests.get(noturl)
notstr=notweb.text
if(notstr.find("ZCO-2022 results announced")!=-1):
print("Result Announced \U0001F603 \U0001F603")
ofcourseonep()
break;
elif(notstr.find("11 Dec 2021")==-1):
print("Website is updated. Result might be announced \U0001F914 \U0001F603")
ofcourseonep()
break
else:
if(c>10):
blahblahblah()
c=0
print("Result is not announced. \U0001F611 \U0001F611")
c+=1
time.sleep(every60secondinINDIA1minutepasses_iarcscanstopthis)
In any issue make issue in github or Reply this message
I didnt write zco this year. Can anybody tell me the problem statement for p2?
where can i find the 2 questions asked in ZCO
Is there anyone who mailed regarding a rough cutoff or for the result date??
cuotff leaked
class 9 → 49
class 10 → 132
class 11 → 448
class 12 → 166
I’m assuming you mean 148 for class 11, and what’s your source?
Your predictions are nice. From this, I can predict you are in 9th. 
dinesh told me
I asked regarding the release date, they replied with ‘evaluations are still in progress and we will release the scores once they are ready’
who?
I think either many hacks are available or many people wrote the exam.
dinesh kumar
That doesn’t help…is that a ZCO official?
Do anyone have any idea till when zco results will be announced.
no he is my friend
…okay so you’re trolling