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 6, 2023 03:08sliceteamsliceteamScore: 7,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2023 03:087,83094,469,03863,991,000999,0002,277,376
2Nov 6, 2023 03:087,84587,418,61563,109,0002,003,0002,273,280
3Nov 6, 2023 03:087,846102,753,05063,119,0002,003,0002,273,280
4Nov 6, 2023 03:087,85091,261,24163,151,0002,004,0002,273,280
5Nov 6, 2023 03:087,86590,120,11264,272,0001,004,0002,404,352
6Nov 6, 2023 03:087,86789,357,14965,297,00002,273,280
7Nov 6, 2023 03:087,86992,802,19964,305,0001,004,0002,404,352
8Nov 6, 2023 03:087,88486,640,71965,436,00002,273,280
9Nov 6, 2023 03:087,90594,521,54264,604,0001,009,0002,404,352
10Nov 6, 2023 03:087,94092,577,96864,905,000998,0002,273,280
11Nov 6, 2023 03:087,98789,205,52466,295,00002,490,368
12Nov 6, 2023 03:088,07692,714,16065,028,0002,000,0002,392,064
13Nov 6, 2023 03:088,366135,356,18869,440,74702,285,568
14Nov 6, 2023 03:088,400144,996,69469,718,10802,289,664
15Nov 6, 2023 03:088,848134,088,65073,437,49802,281,472