As usual, we read the input data from the console and, to avoid making mistakes, we convert the text into small letters with the function
.ToLower(). Consequently, we calculate the weekends spent in Sofia, the time for playing in Sofia and the common playtime. At last, we check whether the year is leap, we make additional calculation when necessary and we print the result on the console rounded down to the nearest integer (look for a C# class with such functionality).
A sample code (parts of the code are blurred on purpose to stimulate independent thinking and solving skills):
Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/508#11.