setssets
#include <string>
#include <set>

#include <iostream>
using namespace std;
int main()
{

    char str[10002];
    while (gets(str))
    {
        set<char*>s;
        s.insert("aa");
        s.insert("aa");
        s.insert("ab");
        printf("%d\n",s.size());
    }

}
View Code

 

#include <string> #include <set>

#include <iostream>

using namespace std;

int main()

{

    char str[10002];

    while (gets(str))  

   {     

    set<char*>s;    

     s.insert("aa");  

       s.insert("aa");

        s.insert("ab");

        printf("%d\n",s.size());  

   }

}

 sets

 

 

 

setssets
#include <string>
#include <set>

#include <iostream>
using namespace std;
int main()
{

    char str[10002];
    while (gets(str))
    {
        set<char*>s;
        char *p;
        p="ac" ;
        char ch[]={'a','c'    };
        char ch1[]={'a','c'    ,'\0'}    ;

        s.insert("p");
        s.insert("ch");
        s.insert("ch1");
        printf("%d\n",s.size());
    }

}
View Code

 

#include <string>

#include <set>

#include <iostream>

using namespace std;

int main() {

    char str[10002];

    while (gets(str))

    {  

       set<char*>s;

        char *p;

        p="ac" ;

        char ch[]={'a','c' };

        char ch1[]={'a','c' ,'\0'} ;

 

        s.insert("p");

        s.insert("ch");  

       s.insert("ch1");   

      printf("%d\n",s.size());  

   }

}

 

 

 

 

sets

 

相关文章:

  • 2021-10-17
  • 2022-02-04
  • 2022-01-12
  • 2022-01-27
  • 2022-01-27
  • 2021-10-27
  • 2021-10-20
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-02-06
  • 2021-08-31
  • 2021-10-19
  • 2021-07-14
  • 2021-10-22
  • 2022-01-27
相关资源
相似解决方案