fork download
  1. #pragma GCC optimize "trapv"
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int32_t main() {
  6. cin.tie(nullptr) -> sync_with_stdio(false);
  7.  
  8. srand(58);
  9. long long sum = 0;
  10. for (int i = 0; i < 100000000; ++i) {
  11. sum += int(rand() % 30000) * int(rand() % 30000);
  12. }
  13. cout << sum << '\n';
  14. }
  15.  
Success #stdin #stdout 3.4s 4236KB
stdin
Standard input is empty
stdout
22500833263307855