-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1acb632
commit ec88de0
Showing
6 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
beginner |