Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Поспаливата_котка_Том
- {
- class Program
- {
- static void Main ( string[] args )
- {
- int P_dni = int.Parse(Console.ReadLine());
- TimeSpan razlika_chas = new TimeSpan(0, (30000 - ((P_dni * 127) + ((365 - P_dni) * 63))), 0);
- if (razlika_chas.Ticks > 0)
- Console.WriteLine($"Tom will run away\n{(int)(razlika_chas.TotalHours)} hours and {razlika_chas.Minutes} minutes more for play");
- else
- Console.WriteLine($"Tom sleeps well\n{Math.Abs((int)(razlika_chas.TotalHours))} hours and {Math.Abs(razlika_chas.Minutes)} minutes less for play");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment