Search found 3 matches

by Dion
Sun Jan 20, 2002 2:00 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 7877

Doh! Taught me to read the docs first. I thought multiple input was simply a different number on a separate line.

Thanks!
by Dion
Sun Jan 20, 2002 12:46 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 7877

FWIW this is the source code of my program. BTW, all the indentation of the output is there, it's just not shown on the page after posting it. #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_VAR 8 int n; void printvar(char buf[MAX_VAR]) { int i; printf("%c", buf[0]); for (i = ...
by Dion
Sun Jan 20, 2002 12:43 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 7877

I keep getting WA for problem 110, even though the output program contains all possible cases, n! writeln and n!-1 if statements, and handles multiple inputs. Can anyone tell me what's wrong with this output? program sort(input,output); var a,b,c,d : integer; begin readln(a,b,c,d); if a < b then if ...

Go to advanced search