Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Code
SUBMITTED BY:
Guest
DATE:
Nov. 30, 2014, 10:03 p.m.
FORMAT:
C++
SIZE:
484 Bytes
Raw
Download
Tweet
HITS:
2010
Go to comments
Report
#include
<iostream>
#include
<cstdio>
// SUMY CALKOWITE
using
namespace
std
;
int
main
()
{
int
n
;
cin
>>
n
;
int
tab
[
n
];
int
suma
=
0
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
scanf
(
"%d"
,
&
tab
[
i
]);
//cin>>tab[i];
suma
=
suma
+
tab
[
i
];
}
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
printf
(
"%d "
,
suma
-
tab
[
i
]);
//cout<<suma-tab[i]<<" ";
}
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus