|
|
back to boarddoes anybody have java solution for this task? please post it (read chunk) here or give some piece of code, many sanx! Re: does anybody have java solution for this task? java AC 0.171 dont use String.toCharArray btw WA7 (add line 2): 1. for (i=p; i<lena; i++) 2. if (a[i]==' ') out2.print(' '); else 3. out2.print('_'); ab ab abcabcabcd | a b bcd | a_ _b _______bcd | so WA 7 controverses with "The words in both utterances are separated with exactly one space; there are no leading or trailing spaces in each line." Edited by author 07.12.2016 06:15 |
|
|