Advertisement
Infiniti_Inter

Тервер

May 16th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #define _CRT_SECURE_NO_WARNINGS
  5. #include <iostream>
  6. #include <fstream>
  7. #include <string>
  8. #include <vector>
  9. #include <iomanip>
  10. #include <algorithm>
  11. /*
  12.  
  13. pi - вер. принятия значения.
  14.  
  15. М(x) = Sum(i = 1, k)pi*x;
  16. x,y
  17. p(x = xi, y = yi) = p(x) * p(y);
  18. M(x*y) = M(x) * M(y);
  19.  
  20. для независимых случаев
  21. M(x + y) = M(x) + M(y);
  22.  
  23. [0..M-1]
  24. [0..x-1]
  25. x<=M
  26. l = M/x;
  27. R: l < k * y ? r % x : new num;
  28.  
  29.  
  30. */
  31.  
  32.  
  33. int main() {
  34.  
  35. #ifdef _DEBUG
  36. freopen("input.txt", "r", stdin);
  37. #endif // _DEBUG
  38.  
  39.  
  40.  
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement