Weird sentences
Statement
Write a program that swaps upper or lowercase for a letter if it's ASCII value is even,else add 1 to it's ASCII value and print the sentence.
If the string equals to " ", output {{ERROR STRING IS A SPACE}}.
If there are no strings, output {{ERROR NO INPUT}}.
Input description
<<Line 1:>> [[n]] strings
<<Line 2:>> next [[n]] lines: a string
Output description
[[n]] corrected strings
Constraints
0 ≤ [[n]] ≤ 100
Game modes
Test cases
Test 1 Test
Input
1
Hello sir How are you ?? it's been a while !!
Output
hfLLp tjR hpx bRf zpv @@ jT(t BffN b xHjLf ""
Validator 1 Validator
Input
1
I dont like ZzzzZzz, maybe will you help me ?
Output
J DpNT Ljlf zZZZzZZ, nbzBf xjLL zpv HfLP nf @
Test 2 Test
Input
1
Output
ERROR STRING IS A SPACE
Validator 2 Validator
Input
1
Python is a programing language
Output
pzTHpN jt b PRphRbnjNh LbNhvbhf
Test 3 Test
Input
3
I
Like
Codingame
Output
J
ljlf
DpDjNhbnf
Validator 3 Validator
Input
3
Isn't
it
hard ?
Output
JtN(T
jT
HbRD @
Test 4 Test
Input
6
I
Love
Holes
Output
ERROR STRING IS A SPACE
J
ERROR STRING IS A SPACE
lpVf
ERROR STRING IS A SPACE
hpLft
Validator 4 Validator
Input
2
I'm typing garbage
How IS it WORKing?
Output
J(n TzPjNh hbRBbhf
hpx JT jT XPrLjNh@
Test 5 Test
Input
0
Output
ERROR NO INPUT
Validator 5 Validator
Input
0
Output
ERROR NO INPUT
Solution language
Solution
Stub generator input