diff --git a/solutions/beecrowd/3303/3303.py b/solutions/beecrowd/3303/3303.py new file mode 100644 index 00000000..f5e2919b --- /dev/null +++ b/solutions/beecrowd/3303/3303.py @@ -0,0 +1,7 @@ +import sys + +for line in sys.stdin: + if len(line) <= 10: + print('palavrinha') + else: + print('palavrao') diff --git a/solutions/beecrowd/3303/generate_in.sh b/solutions/beecrowd/3303/generate_in.sh new file mode 100755 index 00000000..47e205a8 --- /dev/null +++ b/solutions/beecrowd/3303/generate_in.sh @@ -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 diff --git a/solutions/beecrowd/3303/in.txt b/solutions/beecrowd/3303/in.txt new file mode 100644 index 00000000..228b911e --- /dev/null +++ b/solutions/beecrowd/3303/in.txt @@ -0,0 +1,20 @@ +a +aa +aaa +aaaa +aaaaa +aaaaaa +aaaaaaa +aaaaaaaa +aaaaaaaaa +aaaaaaaaaa +aaaaaaaaaaa +aaaaaaaaaaaa +aaaaaaaaaaaaa +aaaaaaaaaaaaaa +aaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaaaa diff --git a/solutions/beecrowd/3303/out.txt b/solutions/beecrowd/3303/out.txt new file mode 100644 index 00000000..892b5f61 --- /dev/null +++ b/solutions/beecrowd/3303/out.txt @@ -0,0 +1,20 @@ +palavrinha +palavrinha +palavrinha +palavrinha +palavrinha +palavrinha +palavrinha +palavrinha +palavrinha +palavrao +palavrao +palavrao +palavrao +palavrao +palavrao +palavrao +palavrao +palavrao +palavrao +palavrao diff --git a/solutions/beecrowd/3303/problem.md b/solutions/beecrowd/3303/problem.md new file mode 100644 index 00000000..7fa77e1a --- /dev/null +++ b/solutions/beecrowd/3303/problem.md @@ -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). diff --git a/solutions/beecrowd/3303/tags.txt b/solutions/beecrowd/3303/tags.txt new file mode 100644 index 00000000..ae224c24 --- /dev/null +++ b/solutions/beecrowd/3303/tags.txt @@ -0,0 +1 @@ +beginner