|
|
вернуться в форумWA#12???? Who can tell me………… Why got WA#12? Re: WA#12???? Послано KALO 3 фев 2010 19:50 if you have to cut a word, the word must end with string1+string2 (without '-'). Therefore I used: String h=word.toUpperCase(); String s=(string1+string2).toUpperCase(); if (h.endsWith(s)){ int z=h.lastIndexOf(s) //<-- !!! ... This helped me (in Java) to avoid WA#12. Re: WA#12???? Послано 107th 8 май 2023 12:07 Following test helped me to pass test #12: 0 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa. |
|
|