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 listNov 5, 2024 22:12Manuel PepeManuel PepeScore: 1,421,591Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2024 22:121,419,43511,811,528,47011,682,371,00098,943,0002,334,720
2Nov 5, 2024 22:121,421,59111,831,866,20411,699,258,00099,950,0002,338,816
3Nov 5, 2024 22:121,423,94611,857,203,23211,710,815,000107,933,0002,453,504