Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
24
Task/Permutations/Aime/permutations.aime
Normal file
24
Task/Permutations/Aime/permutations.aime
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
void
|
||||
f1(record r, ...)
|
||||
{
|
||||
if (~r) {
|
||||
for (text s in r) {
|
||||
r.delete(s);
|
||||
rcall(f1, -2, 0, -1, s);
|
||||
r[s] = 0;
|
||||
}
|
||||
} else {
|
||||
ocall(o_, -2, 1, -1, " ", ",");
|
||||
o_newline();
|
||||
}
|
||||
}
|
||||
|
||||
main(...)
|
||||
{
|
||||
record r;
|
||||
|
||||
ocall(r_put, -2, 1, -1, r, 0);
|
||||
f1(r);
|
||||
|
||||
0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue