Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- unsigned int x, a, b, c, tm;
- cin>>x>>a>>b>>c;
- tm=2*360;
- tm=tm+(((x-a+40)%40)*360/40);
- tm=tm+360;
- tm=tm+(((b-a+40)%40)*360/40);
- tm=tm+(((b-c+40)%40)*360/40);
- cout<<tm;
- //This is a legitimate code made by Chris Christides for Hackerrank.com/--4
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement