Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJun 7, 2024 17:35GraceGraceScore: 41,828Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 17:3541,667405,597,550345,838,57602,269,184
2Jun 7, 2024 17:3441,675406,794,675345,905,33402,273,280
3Jun 7, 2024 17:3641,701401,619,637346,117,03502,273,280
4Jun 7, 2024 17:3641,716399,571,363346,243,39702,269,184
5Jun 7, 2024 17:3641,725408,309,324346,317,92702,269,184
6Jun 7, 2024 17:3641,767423,326,344346,662,50302,400,256
7Jun 7, 2024 17:3541,782414,563,430346,788,91602,273,280
8Jun 7, 2024 17:3541,793413,994,203346,882,19102,281,472
9Jun 7, 2024 17:3441,812412,517,185347,038,82202,400,256
10Jun 7, 2024 17:3641,828405,414,837347,174,67002,392,064
11Jun 7, 2024 17:3641,853405,315,076347,375,98002,269,184
12Jun 7, 2024 17:3641,856416,179,267347,405,19402,260,992
13Jun 7, 2024 17:3541,858410,346,238347,423,04602,273,280
14Jun 7, 2024 17:3641,866434,702,960347,486,49402,260,992
15Jun 7, 2024 17:3542,193408,339,543350,202,01502,269,184
16Jun 7, 2024 17:3642,236422,829,898350,561,73902,273,280
17Jun 7, 2024 17:3542,722429,637,072354,596,57202,265,088
18Jun 7, 2024 17:3443,826453,301,650363,755,98102,400,256