Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SpiceMustFlow
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- int day = 0;
- int sum = 0;
- while (num > 0)
- {
- if (num < 100)
- {
- if (sum < 26)
- {
- break;
- }
- sum -= 26;
- break;
- }
- sum += num - 26;
- num -= 10;
- day++;
- }
- Console.WriteLine(day);
- Console.WriteLine(sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement