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 Cat_Tom_Sleepy
- {
- class Program
- {
- static void Main(string[] args)
- {
- var days = int.Parse(Console.ReadLine());
- var holidays = days*127;
- var workingDay = (365 - days)*63;
- var allDays=holidays+workingDay;
- if (allDays < 30000)
- {
- int hourMin = (30000 - allDays);
- Console.WriteLine("Tom sleeps well");
- Console.Write(hourMin / 60);
- Console.WriteLine(" hours and {0} minutes less for play",hourMin % 60);
- }
- else
- {
- int hourMin = allDays - 30000;
- Console.WriteLine("Tom will run away");
- Console.Write(hourMin/60);
- Console.WriteLine(" hours and {0} minutes more for play",hourMin % 60);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment