#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;
}
Get Ready to Manage Mail: Shipping Store Simulator 2037 Announced for Steam
The simulation genre continues its rapid expansion, offering players the chance to master...
Columbia Museum of Art Seeks Executive Director to Steward 75-Year Legacy
The cultural landscape of South Carolina is buzzing with significant news: the renowned Columbia...
Meta Platforms Stock Soars on Blockbuster Q4 Earnings and Bullish Outlook
Meta Platforms Inc., the parent company of Facebook, Instagram, and WhatsApp, delivered a massive...
Unraveling the Mystery: Do Hedgehogs Experience Heat Cycles?
For those fascinated by the natural world, the reproductive habits of unique mammals often raise curious questions....
The One TV Setting Change That Instantly Improves Your Streaming Experience
If you've recently upgraded to a new smart TV and noticed that your favorite...
Ernst Öpik: The Legendary Astrophysicist Born on November 13th
In the vast calendar of scientific history, certain dates mark the beginning of groundbreaking lives. November...
Master Chief Voice Actor Steve Downes Slams Unauthorized AI Voice Cloning
The iconic voice behind the legendary Master Chief of the Halo series, Steve Downes,...
Mews Secures Massive $300M Series D Round, Hitting $2.5 Billion Valuation
The landscape of hospitality technology is rapidly evolving, and few companies are making a...
Lagos Gentry Forum Launches Crucial Scholarship Drive for Indigent Students
In a significant move aimed at democratizing access to tertiary education, the Lagos Gentry Forum...