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 listJun 7, 2024 12:20GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 12:2000000Error: expected "53691996094872152 ", got "53691995439512152 "
2Jun 7, 2024 12:1900000Error: expected "53687009704376446 ", got "53687009697822846 "
3Jun 7, 2024 12:204,23658,388,95734,156,0001,004,0002,273,280
4Jun 7, 2024 12:204,25364,828,37433,287,0002,017,0002,334,720
5Jun 7, 2024 12:194,25856,763,74132,313,0003,029,0002,490,368
6Jun 7, 2024 12:194,26056,829,94833,341,0002,020,0002,273,280
7Jun 7, 2024 12:204,26160,643,88333,349,0002,021,0002,273,280
8Jun 7, 2024 12:194,27261,372,98533,432,0002,026,000376,832
9Jun 7, 2024 12:204,27263,340,69033,435,0002,026,0002,478,080
10Jun 7, 2024 12:204,29061,741,64235,611,00002,273,280
11Jun 7, 2024 12:204,29663,141,62833,616,0002,037,0002,273,280
12Jun 7, 2024 12:194,29762,779,74834,649,0001,019,0002,490,368
13Jun 7, 2024 12:194,29861,916,48134,654,0001,019,000364,544
14Jun 7, 2024 12:194,30065,868,94535,689,00002,482,176
15Jun 7, 2024 12:204,31762,482,11634,839,000995,0002,273,280
16Jun 7, 2024 12:194,31762,247,39432,842,0002,985,0002,506,752
17Jun 7, 2024 12:194,31762,442,59432,849,0002,986,0002,273,280
18Jun 7, 2024 12:194,32256,118,98233,881,0001,993,000372,736
19Jun 7, 2024 12:204,32564,989,44633,903,0001,994,0002,490,368
20Jun 7, 2024 12:194,33658,777,78733,988,0001,999,0002,273,280
21Jun 7, 2024 12:204,33861,483,52533,007,0003,000,0002,273,280
22Jun 7, 2024 12:194,34158,218,56634,032,0002,001,0002,273,280
23Jun 7, 2024 12:204,34263,652,61334,034,0002,002,000176,128
24Jun 7, 2024 12:204,35661,988,91833,145,0003,013,0002,469,888
25Jun 7, 2024 12:204,36758,242,91433,224,0003,020,000176,128
26Jun 7, 2024 12:194,37857,107,47133,307,0003,027,0002,273,280
27Jun 7, 2024 12:204,464112,962,92337,053,63802,236,416
28Jun 7, 2024 12:204,490105,784,64537,262,88502,248,704
29Jun 7, 2024 12:194,516106,883,06337,480,55302,244,608
30Jun 7, 2024 12:194,533104,977,81337,620,74002,367,488
31Jun 7, 2024 12:194,548102,794,06937,749,27702,244,608
32Jun 7, 2024 12:204,88295,592,10240,523,57002,240,512