Hi,
I am really bored with this problem.
I have read all the posts and my code also gives correct output
(i think!!!:oops: ). But it is producing WA again and again and again.........
Can anyone help me finding my mistake, please.
My code is:
#include <stdio.h>
#include <string.h>
//typedef ...
Search found 8 matches
- Sun Nov 19, 2006 9:58 am
- Forum: Volume 105 (10500-10599)
- Topic: 10589 - Area
- Replies: 48
- Views: 26424
- Tue Nov 14, 2006 5:44 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10525 - New to Bangladesh?
- Replies: 50
- Views: 27270
- Mon Nov 13, 2006 7:12 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10525 - New to Bangladesh?
- Replies: 50
- Views: 27270
My code gives correct output for all the sample inputs found in the forum.
But I am still getting WA. I can't find what is wrong
.
Can anyone help me? Please!!!!!!!!!
My code is:
But I am still getting WA. I can't find what is wrong

Can anyone help me? Please!!!!!!!!!
My code is:
Code: Select all
ACed
- Sun Jul 23, 2006 5:32 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11054 - Wine trading in Gergovia
- Replies: 25
- Views: 11217
- Thu Jan 26, 2006 5:44 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27520
10008 What's Cryptanalysis , Why WA???
My code is:
#include <stdio.h>
#include <ctype.h>
int letter[26][2] , temp0 , temp1 ;
void main()
{
char ch ;
long i , j , newline = 0 , totalnum = 0 , finished = 0 ;
scanf("%ld", &totalnum);
fflush(stdin);
newline = 0;
finished = 0;
for(i=0 ; i<26 ; i++)
{
letter [0] = i+65 ...
#include <stdio.h>
#include <ctype.h>
int letter[26][2] , temp0 , temp1 ;
void main()
{
char ch ;
long i , j , newline = 0 , totalnum = 0 , finished = 0 ;
scanf("%ld", &totalnum);
fflush(stdin);
newline = 0;
finished = 0;
for(i=0 ; i<26 ; i++)
{
letter [0] = i+65 ...
- Wed Jan 25, 2006 6:45 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10361 - Automatic Poetry
- Replies: 25
- Views: 16900
10361 Automatic poetry , PE , help
My code is:
#include <stdio.h>
#include <string.h>
void main()
{
char s1[110] , s2[110] , s3[110] , s4[110] , s5[110] , c1[200] , c2[200] , l2[200] , ch , temp[2] ;
long i , totalpair = 0 ;
scanf("%ld" , &totalpair);
for( i = 0 ; i < totalpair ; i++ )
{
strcpy(s1 , "\0");
strcpy ...
#include <stdio.h>
#include <string.h>
void main()
{
char s1[110] , s2[110] , s3[110] , s4[110] , s5[110] , c1[200] , c2[200] , l2[200] , ch , temp[2] ;
long i , totalpair = 0 ;
scanf("%ld" , &totalpair);
for( i = 0 ; i < totalpair ; i++ )
{
strcpy(s1 , "\0");
strcpy ...
- Wed Jan 25, 2006 6:41 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 70202
10062, Tell me the frequencies, PE, please help
Here is my code:
#include <stdio.h>
void main()
{
unsigned char ch ;
int i , j , start = 0;
int ascii[96][2] , temp0 , temp1 ;
for(i=0 ; i<96 ; i++)
{
ascii [0] = i+32 ;
ascii [1] = 0 ;
}
while( (char) ( ch = getchar() ) != EOF )
{
if((ch == '\n') || (ch == '\r')) start=1 ...
#include <stdio.h>
void main()
{
unsigned char ch ;
int i , j , start = 0;
int ascii[96][2] , temp0 , temp1 ;
for(i=0 ; i<96 ; i++)
{
ascii [0] = i+32 ;
ascii [1] = 0 ;
}
while( (char) ( ch = getchar() ) != EOF )
{
if((ch == '\n') || (ch == '\r')) start=1 ...
- Wed Jan 25, 2006 6:37 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10424 - Love Calculator
- Replies: 137
- Views: 60296
10424 love calculator , WA , please help me
Here is my code:
#include <stdio.h>
char name1[30] , name2[30] ;
void main()
{
char letter[26] = { 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' ,
'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , 'x' , 'y' , 'z' };
int sum1 , sum2 , i , j , temp ...
#include <stdio.h>
char name1[30] , name2[30] ;
void main()
{
char letter[26] = { 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' ,
'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , 'x' , 'y' , 'z' };
int sum1 , sum2 , i , j , temp ...