fork download
  1. #include <stdio.h>
  2.  
  3. char list[10];
  4.  
  5. void show(int n)
  6. {
  7. int i;
  8. printf("(%c", list[0]);
  9. for (i=1; i<n; i++) {
  10. printf(",%c", list[i]);
  11. }
  12. printf(")\n");
  13. }
  14.  
  15. void Swap(int k, int i)
  16. {
  17. /*your code*/
  18. }
  19.  
  20. void Perm(int k, int n)
  21. {
  22. /*your code*/
  23. }
  24.  
  25. int main(void)
  26. {
  27. int num, i;
  28.  
  29. scanf("%d", &num);
  30.  
  31. for(i=0; i<num; i++)
  32. list[i] = '1'+i;
  33. Perm(0, num);
  34.  
  35. return 0;
  36. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
Standard output is empty