Codeforces 1283 A. Minutes Before the New Year Solution

Solve in C++:
  1. ///**********ALLAH IS ALMIGHTY************///
  2. ///AH Tonmoy
  3. ///Department of CSE,23rd batch
  4. ///Islamic University,Bangladesh
  5. #include<iostream>
  6. using namespace std;
  7. int main(){
  8.  
  9. long long int t,h,m,r;
  10. cin>>t;
  11. while(t--)
  12. {
  13. cin>>h>>m;
  14. r=((24-h)*60)-m;
  15. cout<<r<<endl;
  16. }
  17.  
  18. }

No comments

Most View Post

Recent post

Codeforces Round 925 (Div. 3) 1931D. Divisible Pairs Solution

    Problem Link  :   https://codeforces.com/contest/1931/problem/D S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. ...

Powered by Blogger.