Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main()
- {
- int n = 20, c;
- srand (time(NULL));
- FILE * out = fopen("1552.in", "w");
- fprintf(out, "%d\n", n);
- while(n--)
- {
- c = rand() % 501;
- fprintf(out, "%d\n", c);
- for(int i = 0; i < c; i++)
- fprintf(out, "%d %d\n", rand() % 10001, rand() % 10001);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment