Search found 2 matches
- Mon Oct 02, 2006 12:32 pm
- Forum: Volume 1 (100-199)
- Topic: 133 - The Dole Queue
- Replies: 42
- Views: 10715
- Fri Sep 29, 2006 2:41 pm
- Forum: Volume 1 (100-199)
- Topic: 133 - The Dole Queue
- Replies: 42
- Views: 10715
Help~133 The Dole Queue WA
I get WA and don't know why?
Here's my code:
#include <iostream>
#include <cstdio>
using namespace std;
#define down -1
#define up 1
int stat[20];
int n=1;
void correct(int *a)
{
if(*a>=n) *a-=n;
if(*a<0) *a+=n;
}
int counter(int start,int interval,int type)
{
int pos=start;
for(int count=0 ...
Here's my code:
#include <iostream>
#include <cstdio>
using namespace std;
#define down -1
#define up 1
int stat[20];
int n=1;
void correct(int *a)
{
if(*a>=n) *a-=n;
if(*a<0) *a+=n;
}
int counter(int start,int interval,int type)
{
int pos=start;
for(int count=0 ...