fork download
  1. #include <iostream>
  2.  
  3. static const int vert = 25;
  4.  
  5. int main() {
  6. srand(time(0));
  7.  
  8. std::cout << vert << std::endl;
  9.  
  10. for (int i = 1; i < vert; i++) std::cout << rand() % (i) << ' ' << i << std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
25
0 1
0 2
1 3
3 4
3 5
4 6
6 7
6 8
4 9
1 10
10 11
8 12
10 13
2 14
2 15
4 16
1 17
15 18
17 19
3 20
14 21
14 22
12 23
21 24