Advertisement
Guest User

Codeforces R199 task E test generator

a guest
Sep 8th, 2013
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #pragma warning( disable : 4996)
  2.  
  3. #include <algorithm>
  4. #include <assert.h>
  5. #include <cmath>
  6. #include <cstdio>
  7. #include <cstdlib>
  8. #include <cstring>
  9. #include <fstream>
  10. #include <iomanip>
  11. #include <iostream>
  12. #include <limits.h>
  13. #include <list>
  14. #include <map>
  15. #include <queue>
  16. #include <set>
  17. #include <string>
  18. #include <time.h>
  19. #include <vector>
  20. #include <stack>
  21.  
  22. using namespace std;
  23.  
  24. int main()
  25. {  
  26.     freopen("input.txt","w",stdout);
  27.     int n = 100000;
  28.     int m = 100000;
  29.     printf("%d %d\n", n, m);
  30.     for (int i = 2; i <= n; i++)
  31.         printf("%d %d\n", i, i - 1);
  32.  
  33.     for (int i = 1; i <= m; i++)
  34.     {
  35.         if (0 == i % 2)
  36.             printf("1 %d\n", i);
  37.         else
  38.             printf("2 %d\n", i);
  39.     }
  40.     return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement