Thursday, March 24, 2016

another

#include<bits/stdc++.h>
using namespace std;

int main()
{
    char get[99],nw[99],l=0;
    gets(get);
    int ln=strlen(get);
    for(int i=0;i<ln;i++)
    {
        for(int j=0;j<ln;j++)
        {
            if(i==j)
                continue;
            else if(get[i]==get[j])
            {
                get[j]=get[j]-33;
            }
        }
    }
    cout<<get<<endl;

    for(int k=0;k<ln;k++)
    {
        if(get[k]>=90&&get[k]<=122)
        {
            nw[l]=get[k];
            l++;
        }
    }
    puts(nw);


    return 0;
}

No comments:

Post a Comment

Speedup Android Studio

Go to Help ->Edit Custom VM Options, and chnge this 4 setting. After that close your Android Studio. This settings are for 8gb of ram pc...