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 16, 2024 19:35zielajzielajScore: 3,563Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 19:353,52852,497,63326,256,0003,029,0002,355,200
2Nov 16, 2024 19:353,53152,809,10528,301,0001,010,0002,523,136
3Nov 16, 2024 19:353,53856,102,19527,343,0002,025,0002,523,136
4Nov 16, 2024 19:293,53950,947,97927,346,0002,025,0002,347,008
5Nov 16, 2024 19:353,54350,546,28227,376,0002,027,0002,342,912
6Nov 16, 2024 19:353,55154,694,79729,472,00002,269,184
7Nov 16, 2024 19:353,55556,488,96628,489,0001,017,0002,347,008
8Nov 16, 2024 19:353,55652,712,78929,516,00002,523,136
9Nov 16, 2024 19:353,55953,994,53928,518,0001,018,0002,527,232
10Nov 16, 2024 19:293,56356,927,74128,554,0001,019,0002,523,136
11Nov 16, 2024 19:353,56959,153,80028,599,0001,021,0002,347,008
12Nov 16, 2024 19:293,57757,252,69629,691,00002,347,008
13Nov 16, 2024 19:293,72553,483,13129,917,000997,0002,531,328
14Nov 16, 2024 19:293,74553,009,38830,083,0001,002,0002,277,376
15Nov 16, 2024 19:353,76353,852,42430,225,0001,007,0002,371,584
16Nov 16, 2024 19:293,77349,617,72831,314,00002,367,488
17Nov 16, 2024 19:353,77954,855,40629,346,0002,023,0002,277,376
18Nov 16, 2024 19:353,78555,247,32331,415,00002,453,504