Problem p02812 (python)

Fixed submission:
n=int(input())
s=list(input())
d=0
for i in range(n):
  if n-(i+1)>=2:
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      d+=1
  else:
    pass
print(d)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if n-(i+1)>=2:
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      d+=1
    else:
      pass
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if n-(i+1)>=2:
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      d+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if n-(i+1)>=2:
    
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      d+=1
  
print(c)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if n-1-i>=2:
    
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      d+=1
  
print(c)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if n-i>=2:
    
    if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
      d+=1
  
print(c)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
    d+=1
  
print(d)

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
d=0
for i in range(n):
  if s[i]=='A' and s[i+1]=='B' and s[i+2]=='C':
    d+=1
  
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=='A' and b[i+1]=='B' and b[i+2]=='c':
    c+=1
  
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=[]
bb=list(input())
for i in bb:
  b.append(i.upper())
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
    else:
      pass
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=[]
bb=list(input())
for i in bb:
  b.append(i.upper())
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
b.upper()
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
b.str.upper()
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input().str.upper())
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=='A':
    if b[i]+b[i+1]+b[i+2]=='ABC':
      c+=1
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
d=0
for i in range(a):
  if b[i]=="A":
    d+=1
  
    if d==1 and b[i+1]=='B':
      
        
      d+=1
      if d==2 and b[i+2]='C':
          
          
        
        
          d=0
          c+=1
  else:
    d=0
        
      
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
d
for i in range(a):
  if b[i]=="A":
    d+=1
  
    if d==1 and b[i+1]=='B':
      
        
      d+=1
      if d==2 and b[i+2]='C':
          
          
        
        
          d=0
          c+=1
  else:
    d=0
        
      
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=="A":
    if b[i+1]=="B":
      if b[i+2]=="C":
        c+=1
        continue
      
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=="A":
    if b[i+1]=="B":
    
      if b[i+2]=="C":
        c+=1
      
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=="A":
    if b[i+1]=="B":
    else:
      pass
      if b[i+2]=="C":
        c+=1
      else:
        pass
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=="A":
    if b[i+1]=="B":
    else:
      pass
      if b[i+2]=="C":
        c+=1
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=="A":
    if b[i+1]=="B":
    else:
      pass
      if b[i+2]=="C":
        c+=1
      else:
        pass
  else:
    pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]='A':
  else:
    pass
    if b[i+1]='B':
    else:
      pass
      if b[i+2]='C':
        c+=1
      else:
        pass
  
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]='A':
    if b[i+1]='B':
    else:
      pass
      if b[i+2]='C':
        c+=1
      else:
        pass
  else:
  pass
print(c)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]="A":
    if b[i+1]="B":
    else:
      pass
      if b[i+2]="C":
        c+=1
      else:
        pass
else:
  pass
print(c)