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 listDec 24, 2024 11:22Sean DewarSean DewarScore: 69,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 11:2469,440604,101,038575,351,0001,000,000188,416
2Dec 24, 2024 11:2269,445602,442,598575,397,0001,000,000196,608
3Dec 24, 2024 11:2469,466601,829,373574,571,0001,998,000180,224
4Dec 24, 2024 11:2269,475609,610,600575,647,000999,000188,416
5Dec 24, 2024 11:2469,487605,396,915574,747,0001,999,000196,608
6Dec 24, 2024 11:2469,507605,128,123574,910,0001,999,000196,608
7Dec 24, 2024 11:2469,509601,272,769574,929,0001,999,000188,416
8Dec 24, 2024 11:2269,510604,158,603575,932,000999,000196,608
9Dec 24, 2024 11:2269,515606,851,056574,974,0001,999,000196,608
10Dec 24, 2024 11:2269,518600,954,695574,000,0003,000,000188,416
11Dec 24, 2024 11:2469,528597,420,623575,080,0002,000,000176,128
12Dec 24, 2024 11:2469,537612,353,582575,157,0002,000,000200,704
13Dec 24, 2024 11:2469,538608,442,971576,166,0001,000,000196,608
14Dec 24, 2024 11:2469,551602,963,649575,276,0002,000,000196,608
15Dec 24, 2024 11:2269,554602,813,891575,294,0002,001,000188,416
16Dec 24, 2024 11:2269,591603,287,185575,607,0001,998,000196,608
17Dec 24, 2024 11:2269,767604,301,567577,070,0002,000,000180,224
18Dec 24, 2024 11:2269,837605,217,442577,652,0001,998,000196,608