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 listDec 31, 2022 17:16Jack FrigaardJack FrigaardScore: 4,963Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:164,92069,522,67437,849,0002,988,0002,457,600
2Dec 31, 2022 17:164,92070,757,82737,846,0002,987,0002,523,136
3Dec 31, 2022 17:164,92466,794,16937,876,0002,990,0002,457,600
4Dec 31, 2022 17:164,93464,086,76337,959,0002,996,0002,523,136
5Dec 31, 2022 17:164,94562,811,40138,038,0003,003,0002,523,136
6Dec 31, 2022 17:164,94763,221,54038,056,0003,004,0002,523,136
7Dec 31, 2022 17:164,94862,377,03238,063,0003,005,0002,453,504
8Dec 31, 2022 17:164,96364,768,94738,182,0003,014,0002,453,504
9Dec 31, 2022 17:164,96468,078,57738,189,0003,014,0002,461,696
10Dec 31, 2022 17:164,97866,024,31939,301,0002,015,0002,453,504
11Dec 31, 2022 17:164,98165,335,56040,332,0001,008,0002,523,136
12Dec 31, 2022 17:164,995103,089,09641,459,43202,215,936
13Dec 31, 2022 17:164,99662,147,49539,447,0002,022,0002,437,120
14Dec 31, 2022 17:165,003117,656,16241,525,21002,207,744
15Dec 31, 2022 17:165,06396,383,38742,024,45002,207,744