Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<long long> h(9,0);
- for(auto i: in) {
- h[i]++;
- }
- for (auto t = 0; t< 256; ++t){
- auto d = h[0];
- h.erase(h.begin());
- h.push_back(d);
- h[6] += d;
- }
- cout << absl::c_accumulate(h, 0) << endl;
Advertisement
Add Comment
Please, Sign In to add comment