Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Lucky four codechef solution

t=int(input())
a=str(4)
for i in range(t):
  x=str(input())
  count=0
  for j in x:
    if j==a:
      count=count+1
   print(count)
 
PREVIOUS NEXT
Tagged: #Lucky #codechef #solution
ADD COMMENT
Topic
Name
8+5 =