Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace TimeCalculator
- {
- class Program
- {
- static void Main(string[] args)
- {
- BigInteger centuries = BigInteger.Parse(Console.ReadLine());
- BigInteger years = BigInteger.Parse(Console.ReadLine());
- BigInteger days = BigInteger.Parse(Console.ReadLine());
- BigInteger hours = BigInteger.Parse(Console.ReadLine());
- BigInteger seconds = BigInteger.Parse(Console.ReadLine());
- BigInteger LeapYears = ((seconds / (60 * 60 * 24 * 365) + hours / (24 * 365) + days / 365 + centuries * 100)+years)/4;
- years = (centuries * 100) + years;
- days = (years * 365) + days+LeapYears;
- hours = (days * 24)+hours;
- seconds = (hours * 360)+seconds;
- BigInteger miliSeconds = seconds * 1000;
- Console.WriteLine(miliSeconds);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement