
Search found 4 matches
- Wed Sep 21, 2005 5:54 am
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 38848
483...Why WA?Plzzz Help
Though it is the easy one..but i'm getting WA..
Could anyone plz help me by giving some difficult test case.Plzz help..Thanks in advance

- Thu Sep 01, 2005 7:52 pm
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 38848
Why WA 483???Plz HELP!
Why this is getting WA??I cant find the bugs :cry:
#include<stdio.h>
#include<string.h>
void reverse(char *s){
int i,j,c;
for(i = 0,j = strlen(s)-1;i<j;i++,j--){
c = s[i];
s[i] = s[j];
s[j] = c;
}
}
void main(){
int c,i = 0,flag = 0;
char arr[500];
while((c = getchar())!=EOF){
if(c ...
#include<stdio.h>
#include<string.h>
void reverse(char *s){
int i,j,c;
for(i = 0,j = strlen(s)-1;i<j;i++,j--){
c = s[i];
s[i] = s[j];
s[j] = c;
}
}
void main(){
int c,i = 0,flag = 0;
char arr[500];
while((c = getchar())!=EOF){
if(c ...
- Wed Aug 31, 2005 7:47 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101808
- Tue Aug 30, 2005 6:47 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101808
10035WA..Please Help!!!
Why this is getting wrong answer????
[/code]
#include<stdio.h>
#include<stdlib.h>
int bitcount(unsigned long n){
int count = 1;
while((n/=2)!=0){
count++;
}
return count;
}
void main(){
unsigned long x,y,temp;
int *in1,*in2;
int len1,len2,len,i,carry,count;
while(scanf("%u %u",&x,&y ...
[/code]
#include<stdio.h>
#include<stdlib.h>
int bitcount(unsigned long n){
int count = 1;
while((n/=2)!=0){
count++;
}
return count;
}
void main(){
unsigned long x,y,temp;
int *in1,*in2;
int len1,len2,len,i,carry,count;
while(scanf("%u %u",&x,&y ...