fork download
  1. #include <bits/stdc++.h>
  2.  
  3. #define ll long long
  4. #define el cout << '\n'
  5.  
  6. using namespace std;
  7.  
  8. mt19937_64 rd(chrono::steady_clock::now().time_since_epoch().count());
  9.  
  10. ll random(ll l, ll r)
  11. {
  12. return rd() % (r - l + 1) + l;
  13. }
  14. void makeTest()
  15. {
  16. ofstream cout("BANGSO.INP");
  17. int n = random(1e2, 3e2);
  18. int m = random(1e2, 3e2);
  19. cout << n << ' ' << m, el;
  20. for (int i = 1; i <= n; i++)
  21. cout << random(-1, 1) << ' ';
  22. el;
  23. for (int i = 1; i <= m; i++)
  24. cout << random(-1, 1) << ' ';
  25. }
  26.  
  27. int main()
  28. {
  29. ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  30.  
  31. for (int i = 1; i <= 1e3; i++)
  32. {
  33. makeTest();
  34. system("BANGSO.EXE");
  35. system("BANGSO_TRAU.EXE");
  36. if (system("fc BANGSO.OUT BANGSO_TRAU.OUT"))
  37. {
  38. cerr << i << " WRONG\n";
  39. break;
  40. }
  41. cerr << i << " PASSED\n";
  42. }
  43. }
Success #stdin #stdout #stderr 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
sh: 1: BANGSO.EXE: not found
sh: 1: BANGSO_TRAU.EXE: not found
sh: 1: fc: not found
1 WRONG