#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;
}
Value 360 Communications IPO Opens Today: Key Details, Price Band, and Subscription Info
Value 360 Communications, a prominent name in the Indian strategic communications and...
WWE's Latest Acquisition: Why the Zoe Hines Signing Represents True Meritocracy
The professional wrestling landscape is constantly shifting, with new talent arriving to challenge the...
Singapore Employment Trends: Growth Slows Down in Q1Singapore’s labor market is entering a phase of moderation, according to the latest advance estimates released by...
Experience the Ultimate Speed: S-Works Tarmac SL8 Now on Massive Sale
In the world of high-performance cycling, few names carry as much weight—or as little...
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...