Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

NZEC PYTHON

$
0
0

D:\Python32

import string

t=1 st='fd' t=input() while(int(t) > 0): st=input()
ctr=0 i=0 l=len(st) for i in range(0,l): if st[i]=='A' or st[i]=='D' or st[i]=='P' or st[i]=='O' or st[i]=='Q' or st[i]=='R': ctr=ctr+1 elif st[i]=='B': ctr=ctr+2

print(ctr)

why if the above code showing nzec while running for Holes in the text


Viewing all articles
Browse latest Browse all 39796

Trending Articles