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 listApr 18, 2024 12:44Matt StuchlikMatt StuchlikScore: 13,383Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 12:4410,558148,820,95887,630,28902,228,224
2Apr 18, 2024 12:4410,894170,085,14690,417,24802,228,224
3Apr 18, 2024 12:4410,941160,735,97190,809,14402,220,032
4Apr 18, 2024 12:4413,349137,257,102108,803,0001,996,0002,486,272
5Apr 18, 2024 12:4413,367132,337,252107,950,0002,998,0002,482,176
6Apr 18, 2024 12:4413,377138,883,868108,031,0003,000,0002,285,568
7Apr 18, 2024 12:4413,383139,176,205108,075,0003,002,0002,285,568
8Apr 18, 2024 12:4413,392134,156,738110,154,0001,001,0002,486,272
9Apr 18, 2024 12:4413,449135,988,730108,609,0003,016,0002,482,176
10Apr 18, 2024 12:4413,470137,709,940110,804,000998,0002,482,176
11Apr 18, 2024 12:4413,495137,406,057110,012,0002,000,0002,285,568
12Apr 18, 2024 12:4413,514133,479,478111,165,0001,001,0002,277,376