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 ...
Search found 3 matches
- Tue Jun 15, 2004 4:10 pm
- Forum: Volume 3 (300-399)
- Topic: 355 - The Bases Are Loaded
- Replies: 74
- Views: 30574
- Mon Jun 14, 2004 4:59 pm
- Forum: Volume 3 (300-399)
- Topic: 386 - Perfect Cubes
- Replies: 53
- Views: 16966
- 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 ...
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 ...