Search found 5 matches

by joshila21
Wed Aug 11, 2004 10:32 pm
Forum: Volume 3 (300-399)
Topic: 381 - Making the Grade
Replies: 9
Views: 2776

381-Why WA?

i dont understand what's wrong with my code?
can any one help me plaese?

here is the code:

#include <stdio.h>
#include <math.h>

struct {
int Bns;
int Abst;
int Test[10];
float Avg;
float AdjAvg;
char Grade;
char Adj_Grade;
}student[31];

int bon[200];

void main (void)
{
int s,t,i,j,k,n ...
by joshila21
Sun Jul 11, 2004 11:17 pm
Forum: Volume 2 (200-299)
Topic: 202 - Repeating Decimals
Replies: 82
Views: 25414

202-why WA?

i don't know what is wrong with this code.
it seems OK! to me.
can anyone help me to findout the mistake?


#include <stdio.h>

int fraction[5000],numerator[5000];

int main()
{
int i,j,k,n,a,b,remainder_a_b,rem,sd=0,exception,minus_;
while(scanf("%d%d",&a,&b)!=EOF)
{
if(sd)printf("\n ...
by joshila21
Sun Jul 11, 2004 11:08 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 58296

:o
now i got "ACCEPTED"
i don't know how i missed it.
thanks for your help.
by joshila21
Tue Jul 06, 2004 12:24 pm
Forum: Volume 100 (10000-10099)
Topic: 10000 - Longest Paths
Replies: 160
Views: 56643

10000-why wrong answer?

:oops:
i submitted the following code and get wrong answer.
is there any critical input or i am making a silly mistake?
please some one help me.


#include <stdio.h>

struct {
long s;
long d;
long length;
}x[11000],max;

void find_largest_distance(long,long,long);

void main (void)
{
long i ...
by joshila21
Tue Jul 06, 2004 12:11 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 58296

195:why wrong answer?

[cpp] :oops:
i submited the following code several times and tried with several inputs.
all were OK! to me.don't hnow where is the mistake.
the same code works for 10098.
please can anyone help me?

#include <stdio.h>
#include <string.h>

void cmp(int,int);
int check(char,int,int);
long fact ...

Go to advanced search