Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4. unsigned int x, a, b, c, tm;
  5. cin>>x>>a>>b>>c;
  6. tm=2*360;
  7. tm=tm+(((x-a+40)%40)*360/40);
  8. tm=tm+360;
  9. tm=tm+(((b-a+40)%40)*360/40);
  10. tm=tm+(((b-c+40)%40)*360/40);
  11. cout<<tm;
  12. //This is a legitimate code made by Chris Christides for Hackerrank.com/--4
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement