Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Illidan
- {
- class Program
- {
- static void Main()
- {
- int players = int.Parse(Console.ReadLine());
- int playerPower = int.Parse(Console.ReadLine());
- int ilidanHealth = int.Parse(Console.ReadLine());
- long totalPower = playerPower * players;
- long delta = Math.Abs(totalPower - ilidanHealth);
- if (totalPower >= ilidanHealth)
- {
- Console.WriteLine($"Illidan has been slain! You defeated him with {delta} points.");
- }
- else
- {
- Console.WriteLine($"You are not prepared! You need {delta} more points.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement