daily pastebin goal
56%
SHARE
TWEET

Hack

Morass Mar 26th, 2016 156 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifdef __GNUC__
  2. #pragma GCC target("sse4,avx")
  3. #endif
  4. #include <immintrin.h>
  5. #include <algorithm>
  6. #include <string>
  7. #include <iostream>
  8. #include <vector>
  9. #include <cstdint>
  10. #include <numeric>
  11. #include <fstream>
  12. #include <sstream>
  13.  
  14. void run(std::ostream& out) {
  15.   int mod = 256279;
  16.   int n = 1000000000 / mod - 1;
  17.   int mult = 200000 / n;
  18.   if (mod * (n + 1) > 1000000000) {
  19.     std::cerr << "overflow\n";
  20.   }
  21.   out << n * mult << std::endl;
  22.   for (int j = 0; j < mult; j++) {
  23.     for (int i = 0; i < n; i++) {
  24.       out << i * mod + 2 * j + 1 << " " << i * mod + 2 * j + 2 << std::endl;
  25.     }
  26.   }
  27. }
  28.  
  29. int main() {
  30.   std::cin.sync_with_stdio(false);
  31.   std::cin.tie(nullptr);
  32.   run(std::cout);
  33.   return 0;
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top