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 listApr 11, 2024 09:40Matt StuchlikMatt StuchlikScore: 20,335Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 09:4018,726223,264,278155,429,16402,293,760
2Apr 11, 2024 09:4018,746229,688,499155,588,83902,285,568
3Apr 11, 2024 09:4018,750224,968,999155,622,80802,285,568
4Apr 11, 2024 09:4019,874187,763,412162,953,0001,999,0002,285,568
5Apr 11, 2024 09:4019,888193,209,251163,067,0002,000,0002,277,376
6Apr 11, 2024 09:4019,912189,477,421164,265,0001,001,0002,285,568
7Apr 11, 2024 09:4020,335193,003,256166,782,0001,997,0002,285,568
8Apr 11, 2024 09:4020,336192,025,988166,792,0001,997,0002,277,376
9Apr 11, 2024 09:4020,347195,865,978166,878,0001,998,0002,277,376
10Apr 11, 2024 09:4020,361191,814,271167,996,000999,0002,277,376
11Apr 11, 2024 09:4020,362193,596,446167,005,0002,000,0002,265,088
12Apr 11, 2024 09:4021,504204,851,086177,485,0001,002,0002,277,376