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 4, 2024 05:53GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 05:5300000Error: No answer to stdout. Died or killed?
2Jun 4, 2024 05:5300000Error: expected "53687725115473574 ", got "53687773066011928 "
3Jun 4, 2024 05:5200000Error: expected "53691795831439384 ", got "53691795831439128 "
4Jun 4, 2024 05:5200000Error: expected "53692942458281656 ", got "53692942458281400 "
5Jun 4, 2024 05:535,06071,872,70140,000,0002,000,0002,273,280
6Jun 4, 2024 05:535,06272,117,43140,011,0002,000,0002,273,280
7Jun 4, 2024 05:535,06263,672,35540,011,0002,000,0002,273,280
8Jun 4, 2024 05:535,07061,315,90540,077,0002,003,0002,273,280
9Jun 4, 2024 05:535,07266,314,70840,093,0002,004,0002,400,256
10Jun 4, 2024 05:535,07565,000,82040,117,0002,005,0002,273,280
11Jun 4, 2024 05:535,07769,136,90241,140,0001,003,0002,396,160
12Jun 4, 2024 05:535,07964,816,23340,145,0002,007,0002,273,280
13Jun 4, 2024 05:535,09271,336,74542,262,00002,273,280
14Jun 4, 2024 05:535,238131,245,92343,479,04602,285,568
15Jun 4, 2024 05:535,239118,704,06443,487,57602,293,760
16Jun 4, 2024 05:535,269117,814,50143,734,10802,289,664
17Jun 4, 2024 05:535,283104,801,78143,847,04802,293,760
18Jun 4, 2024 05:535,297129,732,05843,961,51002,285,568
19Jun 4, 2024 05:535,309101,640,56744,067,60302,281,472
20Jun 4, 2024 05:535,95872,761,17648,441,0001,009,0002,400,256
21Jun 4, 2024 05:536,00582,989,69047,851,0001,993,0002,396,160
22Jun 4, 2024 05:536,03971,837,76449,123,0001,002,0002,273,280