#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;
}
Google Gemini 3 Racks Up 100 Million New Active Users, Challenging ChatGPT's Dominance
The artificial intelligence landscape is witnessing a seismic shift, confirmed by new...
Nvidia Nears Historic $25.4 Billion Investment in OpenAI Funding Round
The landscape of artificial intelligence is poised for another seismic shift as reports indicate that...
Palantir Claims $2 Billion Revenue from Controversial Trump Administration Operations
Palantir Technologies, the major data analytics firm, has recently boasted about achieving a staggering financial...
Arunachal Cabinet Convenes in Remote Anini, Greenlights Sweeping Reforms on Jobs and Governance
In a powerful demonstration of taking administration directly to the citizens, the...
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....