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:39GraceGraceScore: 114,411Success
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:40114,1491,014,592,583947,439,52902,400,256
2Jun 7, 2024 17:39114,1621,031,174,021947,541,83202,260,992
3Jun 7, 2024 17:39114,2361,001,087,110948,156,15602,256,896
4Jun 7, 2024 17:40114,2811,015,633,099948,528,84002,404,352
5Jun 7, 2024 17:40114,2861,004,075,039948,573,50302,265,088
6Jun 7, 2024 17:39114,3391,004,443,785949,015,97702,265,088
7Jun 7, 2024 17:39114,4111,011,253,626949,615,29902,273,280
8Jun 7, 2024 17:40114,4391,011,262,865949,843,44102,400,256
9Jun 7, 2024 17:40114,4691,020,424,950950,092,66002,277,376
10Jun 7, 2024 17:39114,4841,010,247,070950,213,31602,277,376
11Jun 7, 2024 17:40114,6351,037,571,841951,467,45902,265,088
12Jun 7, 2024 17:39115,0171,023,623,897954,642,91102,277,376