Beats 100% Faster C++ Easy Code ✅✅✅✅
\n# Code\n\nclass Solution {\npublic:\n    int countPairs(vector<int>& nums, int t) {\n        ios_base::sync_with_stdio(false);\n        cin.tie(NULL);\n      
\n# Code\n```\nclass Solution {\npublic:\n    int countPairs(vector<int>& nums, int t) {\n        ios_base::sync_with_stdio(false);\n        cin.tie(NULL);\n        cout.tie(NULL);\n        \n        int ans=0;\n       for(int i=0;i<nums.size();i++){\n           for(int j=i+1;j<nums.size();j++){\n               if(nums[i]+nums[j]<t) ans++;\n           }\n       } \n       return ans;\n    }\n};\n```
['C++']