#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;
}
Los Angeles County Child Dies from Measles Complications
A tragic incident in Los Angeles County highlights the severe and potentially fatal consequences of measles infection,...
NASA's Perseverance Rover Finds Potential Biosignature on Mars
In a groundbreaking announcement, NASA has revealed that its Perseverance rover discovered a potential biosignature in a...
Bettors Bet Big on Trump Pardoning Binance Founder Changpeng Zhao
A surprising prediction market trend has emerged, suggesting a significant possibility of a presidential pardon...
6 Best Long-Running Sci-Fi TV Series to Binge-Watch
Science fiction television has given us some of the most imaginative and enduring stories in recent years....
Australian Woman Receives Life Sentence for Fatal Mushroom Poisoning
Erin Patterson, an Australian woman, has been sentenced to life in prison for the fatal mushroom...
Apple's Internal AI Chatbot: A Retail-Focused Approach
Apple, a company synonymous with consumer-facing technology, has reportedly launched its own AI chatbot. However, unlike the...
Solana's U.S. Backing vs. Binance's Asian Capital: A Crypto Clash for Supremacy
The cryptocurrency landscape is a volatile battlefield, and a fascinating clash is brewing...