Codeforces 1283 A. Minutes Before the New Year Solution
Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE,23rd batch
- ///Islamic University,Bangladesh
- #include<iostream>
- using namespace std;
- int main(){
- long long int t,h,m,r;
- cin>>t;
- while(t--)
- {
- cin>>h>>m;
- r=((24-h)*60)-m;
- cout<<r<<endl;
- }
- }
No comments