Search found 2 matches

by tom76925
Tue Aug 12, 2008 7:57 am
Forum: Volume 109 (10900-10999)
Topic: 10954 - Add All
Replies: 80
Views: 41557

Re: 10954 - Add All

Oh~sorry... I just forgot to refresh the ans[]
It's so idiot...
If it add

Code: Select all

memset(ans,0,sizeof(ans));
will got AC
by tom76925
Tue Aug 12, 2008 4:05 am
Forum: Volume 109 (10900-10999)
Topic: 10954 - Add All
Replies: 80
Views: 41557

Re: 10954 - Add All

I couldn't find out what's wrong in my code
I test all the data above and the answer was correct
but when I submit on UVa I got WA
could anyone can help me please... thank you very much~
#include <stdio.h>
#include <stdlib.h>
#define SWAP(x,y) {int t; t = x; x = y; y = t;}

void createheap(int ...

Go to advanced search