Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Sleepy_Tom_Cat
- {
- class Program
- {
- static void Main(string[] args)
- {
- int relaxDay = int.Parse(Console.ReadLine());
- int workDayForYear = 365 - relaxDay;
- int realTimeForPlay = workDayForYear * 63 + relaxDay * 127;
- if (30000>realTimeForPlay)
- {
- int differnceInNorm = 30000 - realTimeForPlay;
- double hours = differnceInNorm / 60;
- double minets = differnceInNorm % 2;
- Console.WriteLine($"Tom sleeps well");
- Console.WriteLine($"{hours} hours and {minets} minutes less for play");
- }
- else
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement