Zoos
Practice
4 (1159 votes)
Basic programming
Input/output
Problem
87% Success 203386 Attempts 10 Points 0.5s Time Limit 256MB Memory 1024 KB Max Code
You are required to enter a word that consists of \(x\) and \(y\) that denote the number of Zs and Os respectively. The input word is considered similar to word zoo if \(2\times x=y\).
Determine if the entered word is similar to word zoo.
For example, words such as zzoooo and zzzoooooo are similar to word zoo but not the words such as zzooo and zzzooooo.
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 \(20\).
Output format
Print Yes if the input word can be considered as the string zoo otherwise, print No.
Explanation
-
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Submissions
Please login to view your submissions
Similar Problems
Points:10
2540 votes
Tags:
Easy
Points:10
1864 votes
Tags:
Ad-HocApprovedBasic ProgrammingEasyImplementationOpen
Points:10
1586 votes
Tags:
Easy
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor