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 29, 2024 20:24Joad NacerJoad NacerScore: 8,904Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 20:248,80296,526,57371,057,0002,001,0002,506,752
2Apr 29, 2024 22:338,81296,193,25772,135,0001,001,0002,285,568
3Apr 29, 2024 22:338,81396,734,58272,145,0001,002,0002,506,752
4Apr 29, 2024 22:338,81695,038,31771,167,0002,004,0002,519,040
5Apr 29, 2024 20:248,82099,573,38071,205,0002,005,0002,285,568
6Apr 29, 2024 20:248,820103,413,30271,198,0002,005,0002,285,568
7Apr 29, 2024 22:338,820103,000,69872,207,0001,002,0002,285,568
8Apr 29, 2024 20:248,824100,113,02371,237,0002,006,0002,285,568
9Apr 29, 2024 22:338,825101,663,36572,248,0001,003,0002,523,136
10Apr 29, 2024 20:248,82995,294,93471,276,0002,007,0002,285,568
11Apr 29, 2024 20:248,833100,063,55971,307,0002,008,0002,281,472
12Apr 29, 2024 22:338,83695,925,84571,331,0002,009,0002,285,568
13Apr 29, 2024 22:338,83994,025,85572,359,0001,004,0002,285,568
14Apr 29, 2024 20:248,90497,831,64771,907,0001,997,0002,285,568
15Apr 29, 2024 20:248,938101,235,74774,183,00002,506,752
16Apr 29, 2024 22:338,939100,353,27272,187,0002,005,0002,285,568
17Apr 29, 2024 20:248,94598,031,29473,241,0001,003,0002,510,848
18Apr 29, 2024 22:338,95798,410,94172,335,0002,009,0002,510,848
19Apr 29, 2024 22:339,297139,606,25977,163,37302,269,184
20Apr 29, 2024 20:249,362146,447,32677,701,01802,273,280
21Apr 29, 2024 20:249,387137,590,10877,916,24802,281,472
22Apr 29, 2024 22:339,398139,821,05678,004,84902,269,184
23Apr 29, 2024 20:249,423132,943,46978,209,29002,269,184
24Apr 29, 2024 22:339,730148,810,43380,760,20002,273,280
25Apr 29, 2024 20:2410,100108,486,04882,829,000997,0002,506,752
26Apr 29, 2024 20:2410,104113,569,96381,866,0001,996,0002,506,752
27Apr 29, 2024 20:2410,124110,933,02482,030,0002,000,0002,285,568