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 14:36GraceGraceScore: 5,215Success
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 14:365,07769,271,83241,132,0001,003,0002,273,280
2Jun 4, 2024 14:365,08164,675,66640,164,0002,008,0002,273,280
3Jun 4, 2024 14:365,08265,318,10340,173,0002,008,0002,273,280
4Jun 4, 2024 14:365,08267,252,64141,176,0001,004,0002,273,280
5Jun 4, 2024 14:365,08364,257,40640,183,0002,009,0002,400,256
6Jun 4, 2024 14:365,08366,737,58941,188,0001,004,0002,273,280
7Jun 4, 2024 14:365,08368,167,59340,181,0002,009,0002,273,280
8Jun 4, 2024 14:365,08566,443,45140,194,0002,009,0002,273,280
9Jun 4, 2024 14:365,08970,297,53441,233,0001,005,0002,273,280
10Jun 4, 2024 14:365,09166,698,13241,253,0001,006,0002,404,352
11Jun 4, 2024 14:365,09264,833,16341,261,0001,006,0002,273,280
12Jun 4, 2024 14:365,09368,573,09640,263,0002,013,0002,273,280
13Jun 4, 2024 14:365,09471,522,37941,276,0001,006,0002,273,280
14Jun 4, 2024 14:365,09769,315,56141,301,0001,007,0002,273,280
15Jun 4, 2024 14:365,10066,302,65141,324,0001,007,0002,273,280
16Jun 4, 2024 14:365,10069,543,29640,313,0002,015,0002,273,280
17Jun 4, 2024 14:365,10164,872,11041,329,0001,008,0002,273,280
18Jun 4, 2024 14:365,17969,637,84941,986,000999,0002,273,280
19Jun 4, 2024 14:365,215109,914,23243,286,42102,277,376
20Jun 4, 2024 14:365,217113,263,65643,303,70302,293,760
21Jun 4, 2024 14:365,221111,772,76143,330,77002,285,568
22Jun 4, 2024 14:365,226100,446,37643,378,80802,281,472
23Jun 4, 2024 14:365,229112,359,15743,400,50602,289,664
24Jun 4, 2024 14:365,229109,479,25643,400,04702,285,568
25Jun 4, 2024 14:365,230102,390,45843,405,06302,293,760
26Jun 4, 2024 14:365,232111,785,21843,421,48502,281,472
27Jun 4, 2024 14:365,233115,597,56043,432,49902,289,664
28Jun 4, 2024 14:365,246102,816,01843,544,95202,285,568
29Jun 4, 2024 14:365,252126,575,00043,594,22502,281,472
30Jun 4, 2024 14:365,262115,041,64643,677,83702,285,568
31Jun 4, 2024 14:366,03580,870,08050,089,00002,396,160
32Jun 4, 2024 14:366,03772,884,66449,108,0001,002,0002,392,064
33Jun 4, 2024 14:366,06168,030,56450,303,00002,396,160
34Jun 4, 2024 14:366,08578,487,77849,498,0001,010,0002,273,280
35Jun 4, 2024 14:366,13976,020,27449,956,000999,0002,273,280
36Jun 4, 2024 14:366,25279,859,60150,894,000997,0002,273,280