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 listJan 8, 2024 14:14Yurkov AlekseyYurkov AlekseyScore: 29,351Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 8, 2024 14:1429,280269,419,125242,020,0001,000,0002,265,088
2Jan 8, 2024 14:1529,291265,552,745241,114,0002,000,0002,285,568
3Jan 8, 2024 14:1529,295278,259,182241,145,0002,001,0002,285,568
4Jan 8, 2024 14:1429,300266,562,634241,188,0002,001,0002,379,776
5Jan 8, 2024 14:1429,326273,026,229242,405,0001,001,0002,285,568
6Jan 8, 2024 14:1529,328268,805,970241,420,0002,003,0002,277,376
7Jan 8, 2024 14:1529,331267,947,561242,448,0001,001,0002,285,568
8Jan 8, 2024 14:1529,332271,684,446243,455,00002,277,376
9Jan 8, 2024 14:1429,335275,955,201242,482,0001,001,0002,285,568
10Jan 8, 2024 14:1429,336269,797,164242,490,000997,0002,285,568
11Jan 8, 2024 14:1529,340271,957,395242,522,0001,002,0002,265,088
12Jan 8, 2024 14:1529,347268,134,685243,580,00002,277,376
13Jan 8, 2024 14:1429,351270,540,349243,616,00002,285,568
14Jan 8, 2024 14:1429,360269,403,901241,692,0001,997,0002,285,568
15Jan 8, 2024 14:1529,367269,381,866242,748,000998,0002,285,568
16Jan 8, 2024 14:1429,390267,480,751241,940,0001,999,0002,359,296
17Jan 8, 2024 14:1529,404266,689,083242,052,0002,000,0002,265,088
18Jan 8, 2024 14:1429,427270,585,254242,243,0002,002,0002,285,568
19Jan 8, 2024 14:1530,020313,286,265249,163,86202,293,760
20Jan 8, 2024 14:1430,039316,591,696249,323,11402,289,664
21Jan 8, 2024 14:1530,045313,576,650249,374,33202,289,664
22Jan 8, 2024 14:1430,047310,802,717249,393,26902,289,664
23Jan 8, 2024 14:1530,058310,615,449249,483,14902,281,472
24Jan 8, 2024 14:1430,067305,865,287249,557,94502,277,376