At a school fair, Rakib maintains a scoreboard and needs the sum of all entries printed after each update round.
What your program reads
Line1: N. Line2: N integers.
What your program prints
The sum.
Limits
1 ≤ N ≤ 10^5
Example input
5 2 4 6 8 10
Expected output
30
main.c
Your work is saved in this browser as you type.
Loading editor…
Input for Run
Run tries your code on the input above and shows what it prints. Submit checks your output against every test, including hidden ones.
Shortcut: Ctrl + Enter sends it to the judge.