← All problemsSign in

Batman and his Attendance

Batman has a nasty habit of vanishing out of sight(because he has to get back to college as his attendance is short). Given a string S count number of times Batman appears in the String. The String S is case sensitive so be careful. Input The first line contains the number of test cases, T. Next, T lines follow each containing a string S. Output For each String S, display the no. of times 'Bat

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start