The judge said wrong answer in cAPS lOCK

Правка en1, от RedBlackTrees, 2021-07-28 08:11:17

Hello, everyone. In the question cAPS lOCK, the judge said the wrong answer for test case number 3, i.e, 'cAPSlOCK'. Now, from reading the question and the following conditions being given:

"Let's consider that a word has been typed with the Caps lock key accidentally switched on, if:

a) either it only contains uppercase letters; b) or all letters except for the first one are uppercase."

taking the above conditions into consideration, 'cAPslOCK' should change to 'CapsLock' as apart from 'c' not all the words are lowercase, i.e, 'l'.

My submission number is #123967359 and it can also be found at https://pastebin.com/6EazS8Ph

I will highly appreciate anyone's input here.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский RedBlackTrees 2021-07-28 08:54:44 5 Tiny change: 'OCK'\n\nI will highly ap' -> 'OCK'\n\nI highly ap'
en3 Английский RedBlackTrees 2021-07-28 08:13:29 2 Tiny change: 'tion, 'cAPslOCK' shou' -> 'tion, 'cAPSlOCK' shou'
en2 Английский RedBlackTrees 2021-07-28 08:12:41 89
en1 Английский RedBlackTrees 2021-07-28 08:11:17 781 Initial revision (published)