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 17:31GraceGraceScore: 5,246Success
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 17:315,035115,352,55641,792,06102,277,376
2Jun 4, 2024 17:315,047117,629,66641,891,17402,281,472
3Jun 4, 2024 17:315,048107,326,70741,895,21902,281,472
4Jun 4, 2024 17:315,049111,235,86041,910,69102,289,664
5Jun 4, 2024 17:315,05097,135,47741,917,16302,285,568
6Jun 4, 2024 17:315,051106,780,08641,919,21302,289,664
7Jun 4, 2024 17:315,055108,556,53341,954,74002,285,568
8Jun 4, 2024 17:315,055120,512,07741,959,21202,293,760
9Jun 4, 2024 17:315,062100,852,28842,014,96902,281,472
10Jun 4, 2024 17:315,066100,588,75442,044,09702,281,472
11Jun 4, 2024 17:315,082117,501,07642,177,55702,277,376
12Jun 4, 2024 17:315,092116,942,62142,263,60302,285,568
13Jun 4, 2024 17:315,23166,294,49943,418,00002,400,256
14Jun 4, 2024 17:315,23369,884,63543,436,00002,273,280
15Jun 4, 2024 17:315,23465,433,88242,434,0001,010,0002,273,280
16Jun 4, 2024 17:315,23764,875,34543,471,00002,400,256
17Jun 4, 2024 17:315,23968,548,61943,481,00002,273,280
18Jun 4, 2024 17:315,24163,602,85442,489,0001,011,0002,273,280
19Jun 4, 2024 17:315,24167,257,15243,500,00002,396,160
20Jun 4, 2024 17:315,24268,447,17742,501,0001,011,0002,273,280
21Jun 4, 2024 17:315,24367,143,98843,518,00002,273,280
22Jun 4, 2024 17:315,24465,010,63743,525,00002,273,280
23Jun 4, 2024 17:315,24469,802,33642,514,0001,012,0002,273,280
24Jun 4, 2024 17:315,24571,828,87442,520,0001,012,0002,392,064
25Jun 4, 2024 17:315,24666,700,96742,528,0001,012,0002,396,160
26Jun 4, 2024 17:315,24765,956,83742,540,0001,012,0002,273,280
27Jun 4, 2024 17:315,24875,016,85042,547,0001,013,0002,404,352
28Jun 4, 2024 17:315,24871,263,51242,547,0001,013,0002,404,352
29Jun 4, 2024 17:315,24971,865,35942,551,0001,013,0002,404,352
30Jun 4, 2024 17:315,24970,551,74842,550,0001,013,0002,273,280
31Jun 4, 2024 17:315,25171,402,23142,571,0001,013,0002,273,280
32Jun 4, 2024 17:315,25175,630,22943,583,00002,396,160
33Jun 4, 2024 17:315,25275,642,44343,593,00002,273,280
34Jun 4, 2024 17:315,25271,993,09142,578,0001,013,0002,273,280
35Jun 4, 2024 17:315,25669,648,81742,631,000991,0002,273,280
36Jun 4, 2024 17:315,25971,239,71743,647,00002,273,280
37Jun 4, 2024 17:315,26068,387,06342,639,0001,015,0002,400,256
38Jun 4, 2024 17:315,26269,221,27143,675,00002,396,160
39Jun 4, 2024 17:315,26467,106,59043,688,00002,510,848
40Jun 4, 2024 17:316,21583,598,50351,587,00002,273,280
41Jun 4, 2024 17:316,24477,424,86949,830,0001,993,0002,400,256
42Jun 4, 2024 17:316,24483,524,47149,832,0001,993,0002,273,280
43Jun 4, 2024 17:316,25877,515,57150,941,000998,0002,400,256
44Jun 4, 2024 17:316,25975,418,31750,953,000999,0002,273,280
45Jun 4, 2024 17:316,26580,100,44451,002,0001,000,0002,273,280
46Jun 4, 2024 17:316,27280,199,27750,053,0002,002,0002,273,280
47Jun 4, 2024 17:316,28377,836,79750,144,0002,005,0002,396,160
48Jun 4, 2024 17:316,29176,286,35951,208,0001,004,0002,396,160