#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;
}
Five Years After the Insurrection: Reflecting on January 6th and the Fight for Health Care
The latest update from the “News From Nancy” series, dated...
OpenAI Snaps Up Convogo Co-Founders, Bolstering Expertise in AI Coaching and HR
The global race for top artificial intelligence talent continues to heat up, and...
The Unanimous Truth: Why 99% of Scientists Believe in Evolution
In the public discourse, the debate between evolutionary theory and creationism often appears balanced. However,...
Charles Cross Secures Future with Massive Four-Year Extension with Seahawks
The Seattle Seahawks organization demonstrated its commitment to building a formidable foundation by securing one...
The Fateful Finale: What Happens to Male Octopuses After Mating?
The ocean is home to countless wonders, but few natural phenomena are as dramatically tragic...
The Ultimate Crossover: Broadway Star Derek Klena Joins the Savannah Bananas
In a surprising twist that perfectly captures the unique spirit of the viral baseball...