Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given X and Y integers < 2^30-1
- while true
- If X == Y
- Terminate fail
- If Y > X
- swap X,Y
- If (X,Y) found in Q
- Terminate success
- Add (X,Y) to Q
- X -= Y
- Y += Y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement