Search found 2 matches

by andy0518
Sun Nov 02, 2008 10:11 am
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 33585

Re: 482 Permutation Arrays

I think my array is big enough, but it is still Run Time Error. Can anyone help me? Thank you #include<iostream> #include<algorithm> #define MAX 600000 using namespace std; int main() { int t,order[MAX]; char text[MAX]; char *token; char item[MAX/2][100]; cin.getline(text,MAX); t = atoi(text); while...
by andy0518
Fri Aug 22, 2008 5:17 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 30986

371 WA

I dont know the wrong of the code I count 1 to 10000 first if the input < 10000, I just use the len[input] please tell me what is wrong thank you very much #include<stdio.h> #define MAX 10000 struct num { unsigned int length; unsigned int value; }; int len[MAX]; int ackermann(unsigned int n) { unsig...

Go to advanced search