|
|
back to boardAC Posted by Anton 10 Nov 2011 05:08 Very easy. Just use int array in this way: a[ 'b' ] = 2, a[ ' ' ] = 1, and so on. So after such initialization we just have to read char from input stream and add a[ c ] to res. Edited by author 10.11.2011 05:09 |
|
|