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:09GraceGraceError
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:0900000Error: expected "53682546202769264 ", got "53682545547409264 "
2Jun 7, 2024 12:094,13263,759,10233,285,0001,008,000176,128
3Jun 7, 2024 12:094,13658,036,19332,312,0002,019,0002,273,280
4Jun 7, 2024 12:094,14757,818,76131,383,0003,037,0002,490,368
5Jun 7, 2024 12:094,15156,638,73332,425,0002,026,0002,260,992
6Jun 7, 2024 12:094,15864,110,64332,481,0002,030,0002,490,368
7Jun 7, 2024 12:094,16264,793,15033,532,0001,016,0002,273,280
8Jun 7, 2024 12:094,16660,622,83132,546,0002,034,0002,478,080
9Jun 7, 2024 12:094,17265,650,67434,624,00002,273,280
10Jun 7, 2024 12:094,17364,211,75133,620,0001,018,0002,486,272
11Jun 7, 2024 12:094,17967,092,94834,689,00002,273,280
12Jun 7, 2024 12:094,20457,368,44832,902,0001,994,000208,896
13Jun 7, 2024 12:094,31563,157,18032,832,0002,984,000221,184
14Jun 7, 2024 12:094,335102,071,02135,977,79402,240,512
15Jun 7, 2024 12:094,342106,855,90936,039,41802,248,704
16Jun 7, 2024 12:094,344100,848,55436,051,67002,236,416
17Jun 7, 2024 12:094,355107,422,13036,143,54602,232,320
18Jun 7, 2024 12:094,380100,478,36136,355,80402,240,512
19Jun 7, 2024 12:094,393104,968,89636,463,20202,240,512
20Jun 7, 2024 12:094,406117,421,55936,565,80302,236,416
21Jun 7, 2024 12:094,409108,269,65136,594,79202,236,416
22Jun 7, 2024 12:094,41294,878,47236,616,30302,244,608