Hi Codeforces folks, i was wondering whether python has alternative for Bitset(in C++) to use it as flag in sieve, i thought of using a string but it is immutable, so do we have an alternative for bitset in python or are we compelled to make a list?
# | User | Rating |
---|---|---|
1 | Benq | 3783 |
2 | jiangly | 3772 |
3 | tourist | 3706 |
4 | maroonrk | 3609 |
5 | Um_nik | 3591 |
6 | fantasy | 3526 |
7 | ko_osaga | 3500 |
8 | inaFSTream | 3477 |
9 | cnnfls_csy | 3427 |
10 | zh0ukangyang | 3423 |
# | User | Contrib. |
---|---|---|
1 | Um_nik | 183 |
2 | awoo | 180 |
3 | nor | 172 |
3 | -is-this-fft- | 172 |
5 | adamant | 170 |
6 | maroonrk | 165 |
7 | antontrygubO_o | 161 |
8 | SecondThread | 159 |
9 | dario2994 | 152 |
9 | kostka | 152 |
Bitset In Python
Hi Codeforces folks, i was wondering whether python has alternative for Bitset(in C++) to use it as flag in sieve, i thought of using a string but it is immutable, so do we have an alternative for bitset in python or are we compelled to make a list?
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en1 |
![]() |
i_love_emilia_clarke | 2015-10-28 21:59:20 | 266 | Initial revision (published) |
Name |
---|