#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;
}
Sloane Stephens Unveils Stylish New Look for 'Tennis Paradise' at Indian Wells
As the tennis world prepares for one of the most prestigious stops on...
Lottery Unlocked 2026: A Deep Dive into AI Accuracy and Pricing ClaimsThe intersection of artificial intelligence and the lottery industry has reached a new...
Taking Charge: How to be Proactive About Cancer Prevention
Every year, millions of families are affected by cancer, yet a startling statistic offers a glimmer...
Workday Shares Plunge as Future Outlook Dims Amid AI Concerns
Workday Inc. (WDAY), a long-standing leader in the enterprise cloud applications market for finance and...
Milan Cortina Olympics Sees Record-Breaking Viewership and PerformanceThe Milan Cortina Winter Olympics have officially concluded, leaving a lasting impact on both sports history and...
New York City Nurses Reach Historic Agreement Ending Major StrikeIn a significant development for the healthcare sector in New York City, nurses at the...
The Hunt Intensifies: Predator: Bloodshed #1 Takes the Yautja to an Underground Arena
Marvel Comics continues to push the boundaries of the Predator franchise, and...