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 listDec 31, 2022 16:52Jack FrigaardJack FrigaardScore: 5,108Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 16:525,04964,562,34138,914,0002,993,0002,453,504
2Dec 31, 2022 16:525,05569,430,23138,963,0002,997,0002,523,136
3Dec 31, 2022 16:525,06764,582,36539,051,0003,003,0002,465,792
4Dec 31, 2022 16:525,08365,714,36339,178,0003,013,0002,461,696
5Dec 31, 2022 16:525,08665,531,81239,200,0003,015,0002,523,136
6Dec 31, 2022 16:525,10065,599,34339,309,0003,023,0002,461,696
7Dec 31, 2022 16:525,10764,699,70439,361,0003,027,0002,297,856
8Dec 31, 2022 16:525,10865,264,66141,389,0001,009,0002,523,136
9Dec 31, 2022 16:525,10963,837,44240,387,0002,019,0002,523,136
10Dec 31, 2022 16:525,16469,421,78639,873,0002,990,0002,523,136
11Dec 31, 2022 16:525,19163,167,38040,083,0003,006,0002,523,136
12Dec 31, 2022 16:525,215116,843,48543,280,47702,207,744
13Dec 31, 2022 16:525,229117,874,87643,403,53402,207,744
14Dec 31, 2022 16:525,237108,441,89343,465,44102,203,648
15Dec 31, 2022 16:525,24573,506,41241,511,0002,024,0002,453,504