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 listMay 29, 2024 16:09GraceGraceScore: 6,252Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 16:096,13673,493,86146,935,0003,994,0002,433,024
2May 29, 2024 16:106,14475,006,15846,997,0003,999,0002,424,832
3May 29, 2024 16:106,14873,375,38947,028,0004,002,0002,461,696
4May 29, 2024 16:106,15075,959,85547,046,0004,003,0002,289,664
5May 29, 2024 16:096,15476,088,47348,071,0003,004,0002,289,664
6May 29, 2024 16:106,17279,446,31347,208,0004,017,0002,306,048
7May 29, 2024 16:096,17475,208,15048,228,0003,014,0002,289,664
8May 29, 2024 16:096,19279,450,80047,366,0004,031,0002,441,216
9May 29, 2024 16:096,19377,628,18848,376,0003,023,0002,433,024
10May 29, 2024 16:096,19973,914,08747,418,0004,035,0002,441,216
11May 29, 2024 16:106,21277,461,05749,537,0002,021,0002,445,312
12May 29, 2024 16:106,24577,006,04648,841,0002,990,0002,437,120
13May 29, 2024 16:096,25276,919,20849,898,0001,995,0002,293,760
14May 29, 2024 16:096,32575,820,19549,467,0003,028,0002,322,432
15May 29, 2024 16:106,36381,510,93749,823,0002,989,0002,437,120
16May 29, 2024 16:106,38078,738,07848,959,0003,996,0002,437,120
17May 29, 2024 16:096,41777,210,79151,254,0002,009,0002,433,024
18May 29, 2024 16:106,486105,034,39253,837,64302,306,048
19May 29, 2024 16:096,495111,777,90953,907,55002,187,264
20May 29, 2024 16:096,521117,827,22454,122,83002,183,168
21May 29, 2024 16:096,535130,280,34154,238,88102,183,168
22May 29, 2024 16:106,54775,794,13550,318,0004,025,0002,383,872
23May 29, 2024 16:106,668132,330,14855,341,06102,183,168
24May 29, 2024 16:106,758114,410,26356,092,87002,187,264