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 listApr 26, 2024 21:21Joad NacerJoad NacerScore: 28,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 21:2127,597289,681,675229,056,73402,285,568
2Apr 26, 2024 21:2127,615286,828,736229,200,60902,277,376
3Apr 26, 2024 21:2127,618286,433,391229,229,19802,281,472
4Apr 26, 2024 21:2427,816298,129,907230,870,22702,273,280
5Apr 26, 2024 21:2328,204259,883,230232,091,0002,000,0002,277,376
6Apr 26, 2024 21:2128,209259,094,073232,136,0002,001,0002,289,664
7Apr 26, 2024 21:2328,216256,996,467232,188,0002,001,0002,519,040
8Apr 26, 2024 21:2428,217257,857,758232,198,0002,001,0002,273,280
9Apr 26, 2024 21:2428,222257,378,590233,239,0001,001,0002,523,136
10Apr 26, 2024 21:2328,227257,641,345232,285,0002,002,0002,260,992
11Apr 26, 2024 21:2328,227267,138,306233,287,0001,001,0002,285,568
12Apr 26, 2024 21:2128,230266,893,951234,309,00002,285,568
13Apr 26, 2024 21:2428,230255,559,525233,309,0001,001,0002,285,568
14Apr 26, 2024 21:2428,231261,042,469233,315,0001,001,0002,285,568
15Apr 26, 2024 21:2128,235257,988,989234,352,00002,285,568
16Apr 26, 2024 21:2428,238259,131,072233,377,0001,001,0002,285,568
17Apr 26, 2024 21:2328,243259,178,558233,413,0001,001,0002,285,568
18Apr 26, 2024 21:2128,244260,885,948233,423,0001,001,0002,285,568
19Apr 26, 2024 21:2128,248261,737,676233,459,0001,001,0002,519,040
20Apr 26, 2024 21:2328,254265,830,759234,510,00002,285,568
21Apr 26, 2024 21:2328,256263,940,376234,522,00002,285,568
22Apr 26, 2024 21:2128,258261,102,227233,543,0001,002,0002,277,376
23Apr 26, 2024 21:2328,260262,597,688233,555,0001,002,0002,285,568
24Apr 26, 2024 21:2428,261263,451,360233,564,0001,002,0002,277,376
25Apr 26, 2024 21:2428,263259,459,404232,584,0001,996,0002,355,200
26Apr 26, 2024 21:2128,269262,110,716233,635,000998,0002,285,568
27Apr 26, 2024 21:2428,278262,528,699232,713,0001,997,0002,277,376
28Apr 26, 2024 21:2128,282261,569,587233,745,000998,0002,519,040
29Apr 26, 2024 21:2328,585260,083,577235,255,0002,002,0002,277,376
30Apr 26, 2024 21:2128,671262,154,692235,968,0001,999,0002,265,088
31Apr 26, 2024 21:2428,714264,914,529237,329,0001,001,0002,285,568
32Apr 26, 2024 21:2329,970307,491,026248,754,87402,285,568
33Apr 26, 2024 21:2329,982306,439,541248,846,66602,256,896
34Apr 26, 2024 21:2429,984315,704,341248,863,75402,301,952
35Apr 26, 2024 21:2330,012320,047,815249,100,28602,277,376
36Apr 26, 2024 21:2430,031301,430,746249,255,84002,281,472