Skip to content

Commit

Permalink
Solve Big Word in python
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Dec 18, 2023
1 parent 1acb632 commit ec88de0
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
7 changes: 7 additions & 0 deletions solutions/beecrowd/3303/3303.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys

for line in sys.stdin:
if len(line) <= 10:
print('palavrinha')
else:
print('palavrao')
10 changes: 10 additions & 0 deletions solutions/beecrowd/3303/generate_in.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

for i in $(seq 1 20); do
for _ in $(seq "${i}"); do
echo -n a
done
echo
done
20 changes: 20 additions & 0 deletions solutions/beecrowd/3303/in.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
a
aa
aaa
aaaa
aaaaa
aaaaaa
aaaaaaa
aaaaaaaa
aaaaaaaaa
aaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
20 changes: 20 additions & 0 deletions solutions/beecrowd/3303/out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
palavrinha
palavrinha
palavrinha
palavrinha
palavrinha
palavrinha
palavrinha
palavrinha
palavrinha
palavrao
palavrao
palavrao
palavrao
palavrao
palavrao
palavrao
palavrao
palavrao
palavrao
palavrao
25 changes: 25 additions & 0 deletions solutions/beecrowd/3303/problem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
https://www.beecrowd.com.br/judge/en/problems/view/3303

# Big Word

Recently Juquinha learned to say big words. These Brazilian Portuguese words are
commonly called "palavrao"s. Amazed at the discovery of the boy, her mother
forbade him to say any "palavrao", about the risk of the boy losing his
allowance.

As Juquinha hates being without an allowance, he hired you to develop a program
to tell him if a word is a "palavrao" or not.

"Palavrao"s are words that contain ten or more characters, all other words are
considered "palavrinha"s.

## Input

Input consists of several test cases. Each case contains a string that describes
the word that Juquinha wants to look up. This string is made up of only
lowercase letters and its length does not exceed 20 characters.

## Output

For each test case, print whether the word Juquinha consulted is a "palavrao"
(big word) or a "palavrinha" (other words).
1 change: 1 addition & 0 deletions solutions/beecrowd/3303/tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
beginner

0 comments on commit ec88de0

Please sign in to comment.