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:41GraceGraceScore: 4,945Success
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:414,90665,577,05939,701,0001,017,0002,396,160
2Jun 4, 2024 14:414,91766,296,09540,809,00002,273,280
3Jun 4, 2024 14:414,91868,091,05538,825,0001,991,0002,273,280
4Jun 4, 2024 14:414,92063,235,77838,841,0001,991,0002,400,256
5Jun 4, 2024 14:414,92068,188,27738,847,0001,992,0002,273,280
6Jun 4, 2024 14:414,92066,662,31540,838,00002,273,280
7Jun 4, 2024 14:414,92162,085,59838,850,0001,992,0002,273,280
8Jun 4, 2024 14:414,92166,068,23138,852,0001,992,0002,400,256
9Jun 4, 2024 14:414,92166,593,18138,855,0001,992,0002,273,280
10Jun 4, 2024 14:414,92163,213,98039,848,000996,0002,273,280
11Jun 4, 2024 14:414,92263,110,03938,862,0001,992,0002,408,448
12Jun 4, 2024 14:414,92263,693,21938,860,0001,992,0002,273,280
13Jun 4, 2024 14:414,92271,601,04138,857,0001,992,0002,273,280
14Jun 4, 2024 14:414,92368,713,25138,871,0001,993,0002,273,280
15Jun 4, 2024 14:414,92467,874,58238,878,0001,993,0002,273,280
16Jun 4, 2024 14:414,92466,071,18939,871,000996,0002,404,352
17Jun 4, 2024 14:414,92666,125,82138,895,0001,994,0002,273,280
18Jun 4, 2024 14:414,92666,877,36238,889,0001,994,0002,404,352
19Jun 4, 2024 14:414,92762,434,41138,900,0001,994,0002,400,256
20Jun 4, 2024 14:414,92767,350,74339,901,000997,0002,273,280
21Jun 4, 2024 14:414,92862,439,33639,902,000997,0002,273,280
22Jun 4, 2024 14:414,93266,715,32339,935,000998,0002,396,160
23Jun 4, 2024 14:414,93462,923,14239,953,000998,0002,404,352
24Jun 4, 2024 14:414,93663,367,91339,971,000999,0002,273,280
25Jun 4, 2024 14:414,94566,298,30840,040,0001,001,0002,404,352
26Jun 4, 2024 14:415,00166,044,17740,496,0001,012,0002,396,160
27Jun 4, 2024 14:415,07268,611,82840,091,0002,004,0002,273,280
28Jun 4, 2024 14:415,101101,817,98042,339,95502,285,568
29Jun 4, 2024 14:415,105112,186,52342,371,03702,277,376
30Jun 4, 2024 14:415,106102,977,70442,379,07302,285,568
31Jun 4, 2024 14:415,107111,375,44542,388,76502,285,568
32Jun 4, 2024 14:415,109107,076,11542,401,04702,293,760
33Jun 4, 2024 14:415,110105,892,56442,411,39802,285,568
34Jun 4, 2024 14:415,111128,259,45542,420,21202,293,760
35Jun 4, 2024 14:415,111110,379,05742,418,73302,285,568
36Jun 4, 2024 14:415,113102,264,21342,435,13802,285,568
37Jun 4, 2024 14:415,115104,133,15942,455,68502,277,376
38Jun 4, 2024 14:415,120116,357,29542,499,90202,289,664
39Jun 4, 2024 14:415,140114,224,48742,662,97702,285,568
40Jun 4, 2024 14:415,82975,281,59647,373,0001,007,0002,469,888
41Jun 4, 2024 14:415,83670,888,05047,428,0001,009,0002,260,992
42Jun 4, 2024 14:415,84071,108,47747,460,0001,009,0002,273,280
43Jun 4, 2024 14:415,84174,796,22247,470,0001,010,0002,273,280
44Jun 4, 2024 14:415,84470,054,56248,503,00002,404,352
45Jun 4, 2024 14:415,85278,830,74047,558,0001,011,0002,273,280
46Jun 4, 2024 14:415,85974,907,60147,617,0001,013,0002,392,064
47Jun 4, 2024 14:415,88178,763,04847,820,000996,0002,404,352
48Jun 4, 2024 14:415,88475,094,55347,841,000996,0002,273,280