fork download
  1. #include <stdio.h>
  2.  
  3. int main () {
  4. int x, y;
  5. scanf("%d", &x);
  6. scanf("%d", &y);
  7. if (x < y && x > 1 && x < 20 && y < 10000) {
  8. printf("%d", 1);
  9. for (int i = 2; i <= x; i++) printf(" %d", i);
  10. printf("\n%d", x + 1);
  11. for (int i = x + 2; i <= y; i++) printf(" %d", i);
  12. }
  13. }
  14.  
  15. //https://pt.stackoverflow.com/q/271685/101
Success #stdin #stdout 0s 4444KB
stdin
Standard input is empty
stdout
Standard output is empty