#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;
}
Science fiction enthusiasts and literary critics alike are turning their eyes toward the upcoming release of Radiant Star, the latest novel by award-winning author...
Simulation gaming enthusiasts have a fresh operational challenge to tackle with the arrival of Mall Together-TENOKE. This brand-new release delivers an immersive shopping mall...
📢 As an Amazon Associate, I earn from qualifying purchases.There comes a point when you realise that tolerating a frustrating situation is costing you...
📢 As an Amazon Associate, I earn from qualifying purchases.There comes a point when you realise that tolerating a frustrating situation is costing you...
📢 As an Amazon Associate, I earn from qualifying purchases.There comes a point when you realise that tolerating a frustrating situation is costing you...