Search found 3 matches

by Racevictor
Wed Sep 21, 2005 5:59 pm
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 44877

AC la , thx
by Racevictor
Wed Sep 21, 2005 5:13 pm
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 44877

10041 vito's family ~ WA

Please help :

My code:


#include<iostream>
#include<stdlib.h>
using namespace std;
int a[501],i,j,m,n,result;
int compare (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}
int main(){
cin>>n;
for(i=0;i<n;i++)
{
result = 0;
cin>>m;
for(j=0;j<m;j++)
cin>>a[j];
qsort (a,m ...
by Racevictor
Tue Jan 25, 2005 7:41 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 49621

492 - WA

I have tested all the cases but it also got WA..
Pls give me a helping hand ^^
//492
#include<iostream>
#include<ctype.h>
using namespace std;
char a[9999];
int main(){
int i;
char temph;

while(cin.getline(a,9999)){
i=0;
while(1){
while(!isalpha(a[i])&& a[i]!='\0')cout<<(a[i++]);
if(a[i ...

Go to advanced search