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 listJan 11, 2024 05:28Chiraag BaluChiraag BaluScore: 72,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2024 04:0972,355666,789,034600,544,42202,265,088
2Jan 11, 2024 05:2872,358673,300,580600,575,54402,260,992
3Jan 11, 2024 04:1472,368661,777,951600,657,29602,260,992
4Jan 11, 2024 05:1272,368665,114,995600,652,56502,265,088
5Jan 11, 2024 05:1272,369658,634,334600,660,91202,269,184
6Jan 11, 2024 04:0972,372659,350,046600,684,28202,273,280
7Jan 11, 2024 05:1272,385661,680,301600,792,95802,260,992
8Jan 11, 2024 04:1472,386668,756,190600,802,71502,265,088
9Jan 11, 2024 05:2872,392660,643,678600,851,88802,260,992
10Jan 11, 2024 05:2872,394671,186,504600,868,79602,256,896
11Jan 11, 2024 05:2872,397671,625,441600,893,56502,277,376
12Jan 11, 2024 04:0972,399661,317,902600,907,57302,260,992
13Jan 11, 2024 05:2872,399659,111,029600,907,59102,260,992
14Jan 11, 2024 05:2872,402664,646,518600,939,69602,265,088
15Jan 11, 2024 04:1472,412673,384,558601,015,45702,265,088