C++ simple solution
\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& nums) {\n        \n        int n = nums.size();\n        vector<bool> res(n);\n       
```\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& nums) {\n        \n        int n = nums.size();\n        vector<bool> res(n);\n        \n        int num = 0;\n        \n        for(int i=0; i<n; i++)\n        {\n            num = num*2 + nums[i];\n            num %= 5;\n            res[i] = num == 0;\n            \n        }\n        \n        return res; \n    }\n};\n```
[]