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 listOct 14, 2024 16:26Joad NacerJoad NacerScore: 4,369Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 16:264,23559,209,84732,136,0003,012,0002,306,048
2Oct 14, 2024 16:254,24463,768,85433,211,0002,012,0002,306,048
3Oct 14, 2024 16:254,25754,245,22534,320,0001,009,0002,310,144
4Oct 14, 2024 16:254,26260,196,06934,364,0001,010,0002,306,048
5Oct 14, 2024 16:254,28060,010,82633,497,0002,030,0002,306,048
6Oct 14, 2024 16:264,28056,731,24334,508,0001,014,0002,387,968
7Oct 14, 2024 16:254,31960,754,54433,858,0001,991,0002,273,280
8Oct 14, 2024 16:254,34159,054,26634,027,0002,001,0002,531,328
9Oct 14, 2024 16:254,35358,293,53535,125,0001,003,0002,306,048
10Oct 14, 2024 16:264,36164,186,15935,195,0001,005,0002,535,424
11Oct 14, 2024 16:254,36957,463,72735,255,0001,007,0002,297,856
12Oct 14, 2024 16:264,40060,401,14334,494,0002,029,0002,535,424
13Oct 14, 2024 16:264,40463,434,14236,554,00002,531,328
14Oct 14, 2024 16:264,41764,602,00636,663,00002,301,952
15Oct 14, 2024 16:254,42159,847,78735,673,0001,019,0002,535,424
16Oct 14, 2024 16:264,47861,952,11135,161,0002,009,0002,301,952
17Oct 14, 2024 16:264,58657,146,26237,059,0001,001,0002,301,952
18Oct 14, 2024 16:264,69657,411,59136,975,0001,998,0002,297,856
19Oct 14, 2024 16:264,71461,275,80636,116,0003,009,0002,301,952
20Oct 14, 2024 16:264,81363,442,72437,955,0001,997,0002,531,328
21Oct 14, 2024 16:265,13268,410,55642,597,00002,293,760