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 4, 2024 02:29GraceGraceScore: 5,950Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 02:295,93175,724,32147,219,0002,009,0002,273,280
2Jun 4, 2024 02:295,93374,070,10347,236,0002,010,0002,273,280
3Jun 4, 2024 02:295,93670,215,89047,257,0002,010,0002,273,280
4Jun 4, 2024 02:295,94177,752,03848,306,0001,006,0002,273,280
5Jun 4, 2024 02:295,94577,695,12748,338,0001,007,0002,273,280
6Jun 4, 2024 02:295,94671,754,96448,342,0001,007,0002,273,280
7Jun 4, 2024 02:295,94973,254,18348,367,0001,007,0002,400,256
8Jun 4, 2024 02:295,95078,756,36449,381,00002,273,280
9Jun 4, 2024 02:295,95978,468,76749,463,00002,396,160
10Jun 4, 2024 02:296,334106,017,67552,572,58902,285,568
11Jun 4, 2024 02:296,338126,229,27152,603,45202,289,664
12Jun 4, 2024 02:296,357131,653,92952,762,85502,289,664
13Jun 4, 2024 02:297,21287,801,43958,861,000997,0002,396,160
14Jun 4, 2024 02:297,23683,947,20958,058,0002,002,0002,273,280
15Jun 4, 2024 02:297,29991,472,82760,585,00002,273,280