C++ | easy to understand sol
\nclass Solution {\npublic:\n    int mod=1000000007;\n    int sumOfFlooredPairs(vector<int>& nums) \n    {\n        vector<int>v(200002,0);\n        for(auto x:
```\nclass Solution {\npublic:\n    int mod=1000000007;\n    int sumOfFlooredPairs(vector<int>& nums) \n    {\n        vector<int>v(200002,0);\n        for(auto x:nums)\n            v[x+1]++;\n        for(int i=1;i<=200001;i++)\n            v[i]+=v[i-1];\n        int res=0;\n        for(auto x:nums)\n        {\n            for(int s=x;s<=100000;s+=x)\n            {\n                int k=s/x;\n                int l=v[s+x]-v[s];\n                res=(res+k*l)%mod;\n            }\n        }\n        return res;\n    }\n};\n```
[]