Search found 1 match

by cka7749
Sat Nov 20, 2010 8:07 am
Forum: Volume 100 (10000-10099)
Topic: 10054 - The Necklace
Replies: 62
Views: 42566

Re: 10054 - The Necklace

I got WA.
But, I don't know what's wrong.
Could you help me??
Thx.


#include <stdio.h>
#define NUM 51
int v[NUM][NUM];

void eulercycle(int x){
int i;
for( i=1; i<NUM; i++){
if(v[x][i]!=0){

--v[x][i];
--v[i][x];
printf("%d %d\n", x, i);
eulercycle(i);
}
}
}
int main(){
int casenum, n ...

Go to advanced search