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;
- using System.Numerics;
- namespace test
- {
- class Program
- {
- static void Main(string[] args)
- {
- int dayCount = int.Parse(Console.ReadLine());
- var workDays = 365 - dayCount;
- var timeForPlay = (workDays * 63) + (dayCount * 127);
- if (30000 > timeForPlay)
- {
- var difference = 30000 - timeForPlay;
- var hours = difference / 60;
- var minutes = difference % 60;
- Console.WriteLine("Tom sleeps well");
- Console.WriteLine("{0} hours and {1} minutes less for play",hours,minutes);
- }
- else if (timeForPlay > 30000)
- {
- var difference = timeForPlay - 30000;
- var hours = difference / 60;
- var minutes = difference % 60;
- Console.WriteLine("Tom will run away");
- Console.WriteLine("{0} hours and {1} minutes more for play",hours,minutes);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement