C++ || the-number-of-full-rounds-you-have-played
\nclass Solution {\npublic:\n    int solve(string s)\n    {\n        int hour=stoi(s.substr(0,2));\n        int min=stoi(s.substr(3,5));\n        return hour*60
```\nclass Solution {\npublic:\n    int solve(string s)\n    {\n        int hour=stoi(s.substr(0,2));\n        int min=stoi(s.substr(3,5));\n        return hour*60+min;\n    }\n    int numberOfRounds(string loginTime, string logoutTime) {\n        int st=solve(loginTime);\n        int et=solve(logoutTime);\n        int ans=0;\n        if(st>et) et=et+1440;\n        if(st%15!=0) st=st+(15-st%15);\n        ans=(et-st)/15;\n        return ans;\n    }\n};\n```\n
['C', 'C++']