Search found 3 matches

by Sarwar
Tue Jun 15, 2004 4:10 pm
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 30574

355 why WA?????

Every output is correct but why WA??
do u have any cretical input, plese help me......
[cpp]
#include<stdio.h>
#include<string.h>
#include<math.h>
#define MAX 10000

#ifdef ONLINE_JUDGE
#define longint long long
#else
#define longint int
#endif

longint DEC;
char Other[MAX];

char Insert_Char ...
by Sarwar
Mon Jun 14, 2004 4:59 pm
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 16966

I am getting worng answer. where is the problem??
please help me.........

[cpp]

#include<stdio.h>
#include<string.h>
#include<math.h>
#define MAX 100

long DEC;
char Other[MAX];

char Insert_Char(long base,long mod)
{
long i;
char C = 'A';

for(i = 0; i < base - 10; i++)
if(mod == 10+i ...
by Sarwar
Tue Nov 04, 2003 12:26 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 37649

WA too

I am getting WA, please help.

Here is my code:

[cpp]
#include<stdio.h>
int top,a[1002];
void push(int p)
{
a[top++]=p;
}
int pop()
{ int p;
top--;
return a[top];
}
int main()
{
int b[1002],n,m,i,c,count=1,v,k;
while(1)
{
top=0;
v=1;
scanf("%d",&n);if(n==0)break;
while(1)
{
top=0;
for ...

Go to advanced search