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 07:19GraceGraceScore: 5,767Success
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 07:195,75072,636,33346,732,000994,0002,273,280
2Jun 4, 2024 07:195,76275,081,47746,825,000996,0002,273,280
3Jun 4, 2024 07:195,76375,792,75246,834,000996,0002,273,280
4Jun 4, 2024 07:195,76472,601,19846,849,000996,0002,404,352
5Jun 4, 2024 07:195,76469,380,77246,844,000996,0002,400,256
6Jun 4, 2024 07:195,76471,646,41945,847,0001,993,0002,273,280
7Jun 4, 2024 07:195,76473,638,93045,852,0001,993,0002,273,280
8Jun 4, 2024 07:195,76577,259,19646,852,000996,0002,273,280
9Jun 4, 2024 07:195,76576,851,61846,851,000996,0002,396,160
10Jun 4, 2024 07:195,76572,971,72947,847,00002,273,280
11Jun 4, 2024 07:195,76670,789,89045,862,0001,994,0002,273,280
12Jun 4, 2024 07:195,76683,576,70646,858,000996,0002,273,280
13Jun 4, 2024 07:195,76678,684,87947,858,00002,273,280
14Jun 4, 2024 07:195,76674,246,41145,864,0001,994,0002,400,256
15Jun 4, 2024 07:195,76673,128,21945,865,0001,994,0002,273,280
16Jun 4, 2024 07:195,76770,225,33047,867,00002,404,352
17Jun 4, 2024 07:195,76871,675,95946,876,000997,0002,273,280
18Jun 4, 2024 07:195,76876,338,81045,878,0001,994,0002,273,280
19Jun 4, 2024 07:195,76972,725,30046,888,000997,0002,273,280
20Jun 4, 2024 07:195,77370,312,70846,918,000998,0002,392,064
21Jun 4, 2024 07:195,77373,791,79946,920,000998,0002,273,280
22Jun 4, 2024 07:195,77876,129,84745,961,0001,998,0002,273,280
23Jun 4, 2024 07:195,79474,645,89447,090,0001,001,0002,273,280
24Jun 4, 2024 07:195,86675,823,78647,672,0001,014,0002,273,280
25Jun 4, 2024 07:195,994118,181,97849,749,73902,281,472
26Jun 4, 2024 07:195,996112,161,25849,765,43202,293,760
27Jun 4, 2024 07:195,997120,150,60749,771,87802,281,472
28Jun 4, 2024 07:196,001118,602,50249,807,78702,281,472
29Jun 4, 2024 07:196,004114,362,63749,831,01802,281,472
30Jun 4, 2024 07:196,010101,041,97949,879,85302,293,760