fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. using ll = long long;
  4.  
  5. ll rand_ll(ll low, ll high) {
  6. return low + (ll)(rand() / (RAND_MAX + 1.0) * (high - low + 1));
  7. }
  8.  
  9. int main() {
  10. srand(time(0));
  11. int T = rand_ll(1, 20);
  12. cout << T << '\n';
  13. while (T--) {
  14. ll N = rand_ll(1, 1e10);
  15. ll k = rand_ll(1, 1e10);
  16. cout << N << ' ' << k << '\n';
  17. }
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
9
7905334612 7359436085
8896095967 2549242480
3823622261 91794399
2108147755 7364273780
9275152926 8749032124
1059575906 4186225823
2075357312 3911346980
4447974461 6279142253
3364248854 9110974055