Zoos - Basics of Input - Output & Basic Programming Practice Problems - HackerEarth
Zoos - Basics of Input - Output & Basic Programming Practice Problems - HackerEarth
All Tracks Basic Programming Input/Output Problem
Zoos BOOKMARK
Attempted by: 29690 / Accuracy: 90% / Maximum Points: 10 / 962 Votes / Share
NEW
PROBLEM EDITORIAL MY SUBMISSIONS ANALYTICS DISCUSSIONS
You are required to enter a word that consists of and that denote the number
of Zs and Os respectively. The input word is considered similar to word zoo if .
Input format
First line: A word that starts with several Zs and continues by several Os.
Note: The maximum length of this word must be .
Output format
Print Yes if the input word can be considered as the string zoo otherwise, print No.
SAMPLE INPUT
zzzoooooo
SAMPLE OUTPUT
Yes
Explanation
BEST SUBMISSION ?
https://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/is-zoo-f6f309e7/description/ 1/2