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 1, 2023 19:55UdbhavUdbhavScore: 39,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 21:0038,823394,719,092322,234,50502,232,320
2Jan 3, 2023 18:1438,826380,709,074322,255,92802,236,416
3Jan 3, 2023 18:1438,831391,693,343322,294,77702,228,224
4Jan 2, 2023 15:4138,831407,400,474322,300,38502,220,032
5Jan 2, 2023 21:0038,841383,063,923322,378,31302,228,224
6Jan 2, 2023 21:0038,872386,035,642322,636,33902,232,320
7Jan 2, 2023 21:0138,878403,078,890322,684,36202,232,320
8Jan 1, 2023 19:4738,934385,659,341323,152,23802,228,224
9Jan 1, 2023 19:4738,936384,725,301323,171,53702,220,032
10Jan 2, 2023 21:0038,936398,655,287323,166,99702,232,320
11Jan 1, 2023 19:3038,937384,769,338323,175,66102,232,320
12Jan 2, 2023 21:0138,937385,375,833323,173,99002,220,032
13Jan 1, 2023 19:3039,014388,756,550323,812,69402,236,416
14Jan 2, 2023 21:0039,021389,601,710323,873,43602,224,128
15Jan 2, 2023 21:0039,090379,754,888324,450,61602,232,320
16Jan 2, 2023 21:0139,121376,553,775324,702,09402,228,224
17Jan 2, 2023 15:4139,141416,218,034324,870,98802,215,936
18Jan 2, 2023 15:4139,142387,695,346324,879,88602,215,936
19Jan 3, 2023 18:1439,161399,987,467325,040,00002,224,128
20Jan 1, 2023 19:5539,166390,315,984325,074,01602,220,032
21Jan 1, 2023 19:5539,206391,341,805325,408,99802,232,320
22Jan 1, 2023 19:3040,286384,935,645334,376,98202,224,128
23Jan 1, 2023 19:4740,475397,645,331335,942,60402,236,416
24Jan 1, 2023 19:5540,582405,072,475336,826,71602,236,416