#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;
}
Xiaomi’s AI Leap: Powering the Next Era of the Internet Ecosystem
Artificial Intelligence (AI) has transcended its status as merely emerging technology; it is now...
The Dark Side of Thankfulness: Understanding Weaponized Gratitude
Gratitude is often touted as a cornerstone of mental health and positive psychology. However, like any powerful...
The Tabletop Revolution: Compact Particle Accelerators Poised to Transform Research
For decades, the realm of high-energy physics and advanced materials science has been dominated by...
The Profound Significance of Native American Heritage Month in San Diego
November marks Native American Heritage Month (NAHM), a period dedicated to recognizing the rich...
Waymo’s Driverless Rideshare Service Headed to San Diego Amid Mixed Community Reactions
San Diego is officially slated to become the next major metropolitan area to...
Ascot Resources Releases Unaudited Third Quarter 2025 Financial Results
VANCOUVER, British Columbia – Ascot Resources Ltd. (TSXV: AOT.H; OTCID: AOTVF) has officially announced its unaudited...
Kiwi Property Group Plays Trump Cards with Costco and Ikea
Kiwi Property Group (KPG) is strategically reshaping its commercial landscape, making major moves that cement...
NBC's Today Show Under Fire for Credulous "Proof" of Noah’s Ark Report
A recent segment on NBC’s venerable Today show has sparked significant criticism within...