Skip to content

Commit

Permalink
Submission Accepted on the Beecrowd !
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrimarinho committed Dec 31, 2021
1 parent 9874454 commit 2e6dabe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Strings Level/Python Codes/1332 - Um-Dois-Três.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Name of the problem: Um-Dois-Três
# Link: https://www.beecrowd.com.br/judge/pt/problems/view/1332

n_words = int(input())
for i in range(n_words):
word = input()
if(len(word) == 3):
if((word[0] == 'o' and word[1] == 'n') or (word[0] == 'o' and word[2] == 'e') or (word[1] == 'n' and word[2] == 'e')):
print(1)
else:
print(2)
elif(len(word) == 5):
print(3)

# Submission Accepted on the Beecrowd !

0 comments on commit 2e6dabe

Please sign in to comment.