Hello Codeforces is there any probability library or any codes could help in these topic. thank you very much :D
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Proof_by_QED | 146 |
| 3 | Um_nik | 146 |
| 5 | Dominater069 | 144 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
Hello Codeforces is there any probability library or any codes could help in these topic. thank you very much :D
Hi Codeforces :D I'm looking for some problems about 3D prefix sum can you provide some links thanks a lot
Hi codeforces are there any tutorials or codes for this gym
http://mirror.codeforces.com/gym/100030
and if not can someone tell me how to solve ( A , F , I ) or one of them at least
thank you very much. sorry for my poor English.
the build function in segment tree :
void build(int id = 1,int l = 0,int r = n){
if(r - l < 2){ // l + 1 == r
s[id] = a[l];
return ;
}
int mid = (l+r)/2;
build(id * 2, l, mid);
build(id * 2 + 1, mid, r);
s[id] = s[id * 2] + s[id * 2 + 1];
}
divide and conquer algorithm to find maximum element in array :
int Max(int s = 1 , int e = n){
if(s == e) return arr[s] ;
int choice1 = arr[s] , choice2 = arr[e] ;
choice1 = max( choice1 , Max( s , (s + e)/2 ) ;
choice2 = max( choice2 , Max( (s + e)/2 + 1 , e ) ;
return max(choice1 , choice2) ;
}
why the complexity of the first function is O( n * log(n) ) And the second is O(n) thanks for your help :D
| Название |
|---|


