Advertisement
Coder_22

Untitled

Oct 14th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. #include <algorithm>
  2. #include <iostream>
  3. #include <random>
  4. #include <vector>
  5. #include <string>
  6. #include <stack>
  7. #include <queue>
  8. #include <set>
  9. #include <map>
  10. using namespace std;
  11. #define ll long long
  12.  
  13. ll m, n, q, ar[N], ar1[N]; string s;
  14.  
  15. ll ran(ll l, ll r) {
  16. random_device rd; mt19937_64 gen(rd());
  17. uniform_int_distribution<ll> dis(l, r);
  18. return dis(gen);
  19. // return l + rand() % (r - l + 1);
  20. }
  21. const ll M = 1e9 + 7, N = 2e5 + 5;
  22.  
  23. auto bruteForce() {
  24. ll a = 0, b = 0, c = 0, d = 0, i = 0, j = 0, k = 0;
  25.  
  26. return ;
  27. }
  28.  
  29. auto optimized() {
  30. ll a = 0, b = 0, c = 0, d = 0, i = 0, j = 0, k = 0;
  31.  
  32. return ;
  33. }
  34.  
  35. void test() {
  36. int tc = 0, t = 10000;
  37. while (++tc <= t) {
  38. n = ran(1, 10);
  39. // for (int i = 0; i < n; ++i) { ar[i] = ran(1, 100); }
  40. auto bf = bruteForce(), op = optimized();
  41. if (bf != op) {
  42. cerr << "Wrong answer on test " << tc << "\nInput:\n";
  43. cerr << n;
  44. cerr << "\nExpected:\n";
  45. cout << bf << '\n';
  46. cerr << "\nFound:\n";
  47. cout << op << '\n';
  48. return;
  49. }
  50. cerr << "Passed test " << tc << " / " << t << '\n';
  51. }
  52. cerr << "Pretests passed successfully!\n";
  53. }
  54.  
  55. signed main() {
  56. cin.tie(0)->sync_with_stdio(0); cin.exceptions(cin.failbit | cin.badbit);
  57. test();
  58. return 0;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement