Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- using System.Linq;
- using System.Collections.Generic;
- namespace Test
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int yeld = int.Parse(Console.ReadLine());
- int spice = yeld;
- int leavingSpice = 0;
- int days = 0;
- if (yeld < 100)
- {
- Console.WriteLine(days);
- Console.WriteLine(leavingSpice);
- return;
- }
- while (yeld >= 100)
- {
- if (yeld >= 100)
- {
- spice = yeld - 26;
- yeld -= 10;
- days++;
- leavingSpice += spice;
- }
- }
- Console.WriteLine(days);
- Console.WriteLine($"{leavingSpice - 26}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement