Search found 2 matches

by oXy
Thu Apr 10, 2003 3:28 pm
Forum: Volume 100 (10000-10099)
Topic: 10063 - Knuth's Permutation
Replies: 14
Views: 7584

10x, i got AC now.

But I still can't tell what the difference between

while (gets(str))
{
}

and

fgets(...)
while (!feof())
{
...
fgets(...);
}

is.
by oXy
Sun Apr 06, 2003 11:59 am
Forum: Volume 100 (10000-10099)
Topic: 10063 - Knuth's Permutation
Replies: 14
Views: 7584

10063

I keep getting WA while trying to solve 10063. I am sure that my algorithm is correct and the problem must be the tricky input/output.

Here is my code. Hope someone who got AC helps me out here. Thanks.

[c]
#include <stdio.h>
#include <string.h>
#include <ctype.h>

void process(char *);
void ...

Go to advanced search