Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul255 authored Dec 12, 2018
1 parent 9ee392c commit e6ffa0c
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 118A.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s, r;
int i;
std::cin >> s;
for (i=0;i<=s.length()-1;i++)
{
char c=s[i];
if (c >= 'A' && c <= 'Z')
{
c =c+32;
}
if (c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u' && c != 'y')
{
cout<<"."; cout<<c;
}
}
cout << r << endl;
return 0;
24 changes: 24 additions & 0 deletions 158A.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include<iostream>
using namespace std;
int main()
{
int n,k,n1,j=0;
int participnt[100];
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>participnt[i];
if(i+1==k)
n1=participnt[i];
}
for(int i=0;i<n;i++)
{
if(participnt[i]>=n1 && participnt[i]>0)
{
j=j+1;
}

}
cout<<j<<endl;
return 0;
}
22 changes: 22 additions & 0 deletions 71A.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a,l;
string s;
cin>>a;
while(a--)
{
cin>>s;
if(s.length()>10)
{
cout<<s[0]<<s.length()-2<<s[s.length()-1]<<endl;
}
else
{
cout<<s<<endl;
}
}
return 0;
}

0 comments on commit e6ffa0c

Please sign in to comment.