Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int students = int.Parse(Console.ReadLine());
- int problems = int.Parse(Console.ReadLine());
- double submissions = Math.Ceiling(problems * 2.8);
- double answers = students * submissions;
- double extraAnswers = students * Math.Floor(problems / 3.0);
- double allAnswers = answers + extraAnswers;
- double memory = 5 * Math.Ceiling(allAnswers / 10);
- Console.WriteLine($"{memory} KB needed");
- Console.WriteLine($"{allAnswers} submissions");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement