#include <stdio.h>
int main()
{
int i, n, x, s=0, max=0;
scanf(“%d”, &n);
for (i=0; i<n; i++)
{
scanf(“%d”, &x);
if (x>max)
max=x;
s+=x;
}
printf(“%d”, n*max-s);
return 0;
}
NIPOST Boss Tola Odeyemi Advocates for Industrial Harmony to Boost Service DeliveryIn a strategic move aimed at revitalizing Nigeria’s postal services, the Postmaster-General and...
The Wisdom of Albert Einstein: Rediscovering the Balance Between Intuition and Logic
Albert Einstein is widely regarded as one of the greatest minds in human...
April Singer Brand Reputation Rankings AnnouncedThe Korean Business Research Institute has officially released the brand reputation rankings for singers for the month of April....
How to Build an Inflation-Resistant Business
In the ever-changing landscape of the global economy, inflation remains a persistent challenge that business owners must navigate with...
Dodgers Strategy: Managing Shohei Ohtani’s Health During Pitching Starts
The Los Angeles Dodgers are prioritizing the long-term health and performance of their superstar, Shohei Ohtani,...
Mystery Science Theater 3000: The Movie Proved That "Mainstream" Isn't Always BetterReleased thirty years ago, Mystery Science Theater 3000: The Movie serves as a...
Core Aviation Bolsters Bell Helicopter Fleet in New Zealand to Rival Airbus
New Zealand's aviation landscape is witnessing a significant shift as Core Aviation, a...