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