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 12, 2023 23:13sliceteamsliceteamScore: 10,373Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 12, 2023 23:1310,273110,583,26283,264,0002,006,0002,334,720
2Nov 12, 2023 23:1310,279106,634,79682,305,0003,011,0002,281,472
3Nov 12, 2023 23:1310,348109,125,25184,894,000998,0002,347,008
4Nov 12, 2023 23:1310,350111,884,58182,911,0002,996,0002,281,472
5Nov 12, 2023 23:1310,354109,086,37883,942,0001,998,0002,342,912
6Nov 12, 2023 23:1310,356115,206,93982,954,0002,998,0002,277,376
7Nov 12, 2023 23:1310,369111,160,31184,059,0002,001,0002,342,912
8Nov 12, 2023 23:1310,373109,055,41085,094,0001,001,0002,338,816
9Nov 12, 2023 23:1310,419108,913,56484,469,0002,011,0002,342,912
10Nov 12, 2023 23:1310,504109,432,95385,177,0002,004,0002,277,376
11Nov 12, 2023 23:1310,520110,775,57286,310,0001,003,0002,281,472
12Nov 12, 2023 23:1310,698155,821,91788,792,28002,232,320
13Nov 12, 2023 23:1310,703120,746,25387,834,000998,0002,281,472
14Nov 12, 2023 23:1310,725144,009,73689,016,29202,220,032
15Nov 12, 2023 23:1310,741148,997,66689,150,02802,224,128