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 listMar 4, 2023 11:18Sergey StreminSergey StreminScore: 25,056Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 4, 2023 11:1824,379262,727,556202,346,94202,211,840
2Mar 4, 2023 11:1824,563232,021,746200,875,0002,998,0002,277,376
3Mar 4, 2023 11:1824,822275,993,016206,025,61302,207,744
4Mar 4, 2023 11:1825,034234,902,067204,790,0002,996,0002,277,376
5Mar 4, 2023 11:1825,043233,709,023205,857,0001,998,0002,277,376
6Mar 4, 2023 11:1825,047234,101,269205,896,0001,998,0002,277,376
7Mar 4, 2023 11:1825,056230,374,096205,969,0001,999,0002,355,200
8Mar 4, 2023 11:1825,069236,091,020206,071,0002,000,0002,359,296
9Mar 4, 2023 11:1825,086230,965,830207,211,0001,001,0002,359,296
10Mar 4, 2023 11:1825,087233,775,129206,221,0002,002,0002,277,376
11Mar 4, 2023 11:1825,109230,237,453205,400,0003,005,0002,277,376
12Mar 4, 2023 11:1825,164270,841,588208,857,57202,211,840