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 listMar 16, 2024 16:43Matt StuchlikMatt StuchlikScore: 29,249Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2024 16:4329,189263,905,054242,265,00002,510,848
2Mar 16, 2024 16:4329,202265,471,439241,377,0001,001,0002,523,136
3Mar 16, 2024 16:4329,216274,161,483241,491,0001,002,0002,273,280
4Mar 16, 2024 16:4329,230270,748,311241,608,000998,0002,273,280
5Mar 16, 2024 16:4329,240267,185,911240,696,0001,997,0002,514,944
6Mar 16, 2024 16:4329,241266,772,287240,704,0001,997,0002,260,992
7Mar 16, 2024 16:4329,249272,262,765240,769,0001,998,0002,519,040
8Mar 16, 2024 16:4329,252271,616,474240,797,0001,998,0002,273,280
9Mar 16, 2024 16:4329,253269,985,461240,802,0001,998,0002,273,280
10Mar 16, 2024 16:4329,690312,608,503246,430,01402,285,568
11Mar 16, 2024 16:4329,713319,951,041246,618,80102,285,568
12Mar 16, 2024 16:4329,758323,043,728246,994,74602,281,472