#26679: c++ 速解


yangpokemonpin@gmail.com (楊辰彬)


int test1 = input[i] - 'a';
int test2 = input[i] - 'A';

if (test1 >= 0 && test1 < 26 || test2 >= 0 && test2 < 26)
{
if (POS == false)
{
POS = true; // default is true
count++; // default is 1
}
}
else
{
POS = false;
}