{"id":17078901,"url":"https://github.com/hatoo/bitset-fixed","last_synced_at":"2025-07-16T13:04:53.012Z","repository":{"id":147904903,"uuid":"189607520","full_name":"hatoo/bitset-fixed","owner":"hatoo","description":"Bitset for DP","archived":false,"fork":false,"pushed_at":"2019-11-30T08:07:58.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T12:30:10.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-31T14:27:56.000Z","updated_at":"2020-09-28T16:26:51.000Z","dependencies_parsed_at":"2023-05-27T21:30:15.194Z","dependency_job_id":null,"html_url":"https://github.com/hatoo/bitset-fixed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hatoo/bitset-fixed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fbitset-fixed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fbitset-fixed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fbitset-fixed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fbitset-fixed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatoo","download_url":"https://codeload.github.com/hatoo/bitset-fixed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fbitset-fixed/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265512104,"owners_count":23779864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T12:23:55.168Z","updated_at":"2025-07-16T13:04:52.865Z","avatar_url":"https://github.com/hatoo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"bitset-fixed\n===\n\n**Under developing**\n\nBitset for DP.\n\n## Example\n\nExample for AGC20-C\n\n```rust\nuse bitset_fixed::BitSet;\nuse rand::prelude::*;\n\nfn main() {\n    let mut rng = StdRng::seed_from_u64(114514);\n\n    let n: Vec\u003cusize\u003e = (0..25).map(|_| rng.next_u32() as usize % 2000).collect();\n    let sum = n.iter().sum::\u003cusize\u003e();\n\n    let mut bitset = BitSet::new(sum + 1);\n    bitset.set(0, true);\n\n    for \u0026x in \u0026n {\n        bitset |= \u0026(\u0026bitset \u003c\u003c x);\n    }\n\n    let ans = ((sum + 1) / 2..).find(|\u0026i| bitset[i]).unwrap();\n\n    println!(\"N = {:?}\\nAnswer = {}\", n, ans);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2Fbitset-fixed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatoo%2Fbitset-fixed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2Fbitset-fixed/lists"}