Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Tortoise
- {
- public static int[] Race(int v1, int v2, int g)
- {
- if(v1 >= v2)
- return null;
- TimeSpan tspan = TimeSpan.FromHours((double) g / (v2 - v1));
- return new int[]{tspan.Hours, tspan.Minutes, tspan.Seconds};
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement