摘要:
前置知识:bitset其实是用unsigned来实现的 bitset的基本用法: 初始化: bitset<n> b(u); //b是unsigned long型u的一个副本 bitset<n> b(s); //b是string对象s中含有的位串的副本 bitset<n> b(s, pos, n); 阅读全文
posted @ 2023-01-22 18:40
兮何其
阅读(47)
评论(0)
推荐(0)
摘要:
eg1: Leecode class Solution { public: int maxHappyGroups(int batchSize, vector<int>& groups) { w = groups; n = w.size(); m = batchSize; ans = 0; for(i 阅读全文
posted @ 2023-01-22 07:25
兮何其
阅读(54)
评论(0)
推荐(0)

浙公网安备 33010602011771号