oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

sumint Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

sumint.html

Gary the snail [that goes meow] has been trying to use Microsoft Excel to calculate how many times he has meowed. However, Microsoft Excel, being a product of Microsoft, has crashed and he now cannot calculate how many times he has meowed. He knows how many times he meowed in each day but needs you to write a program to sum up how many times he meowed in d days and tell him the total amount.

Input

On the first line of input is the number of days he wants you to sum, d. Where 1 <= d <=10000.
On the following line will be d space-separated numbers, 0 <= di <=100000.

Sample Input

10
37 17 38 47 29 83 13 2 8 72

Sample Output

346

Tags

Syntax

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBAverage
2011s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o sumint -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.