#include<iostream>
using namespace std;
int main()
{
char s[100],*p;
int i,j,k,x[10]={0},c[100]={0};
j=0;
cin.get(s,100);
if(isalpha(a[0]) || isdigit(a[0]))
i=1;
for(p=s;*p!=0;p++)
{
if(isdigit(*p))
{
x[j]=*p-'0';
if(isdigit(*p-1))
{
x[j]=x[j]*10+(*p-'0');
}
else j++;
}
}
i=0;
for(i=0;i<j;i++)
{
k=x[i];
while(k>0)
{k=k/10;
c[i]++;
}
}
for(i=0;i<j;i++)
if(c[i]<=1)
switch
Orar semigroup #2
Problema 15 octombrie
joi, 14 octombrie 2010
by DlMuresan
Categories:
cod ASCII,
functii,
info,
siruri caractere
|
Leave a comment