#include <iostream>


using namespace std;


int main()

{

    char c[999999]="The Curious Case of Benjamin Button";

    

    

    int b=1; 

    

     for(int i=0; i<999999; i++)

     

     {

      

       if(c[i]==32)

       {

         if(c[i+1]^32)

         {

          b++;

         }

       }

     

     }

     

     cout << b <<"\n";

 

system("Pause");

}





마지막 글자 + 스페이스는 안고쳐진다..



답없노