Description
Input
Output
Sample Input
stable marriage problem Consists of Matching members
Sample Output
7
#include
#include
using namespace std;
int main()
{char str[100];int n=0,i;gets(str);for(i=0;str[i]!=' ';i++){if(str[i]!=' '&&str[i+1]==' ')n++;}cout<