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 listNov 19, 2024 23:44zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 19, 2024 03:1300000Error: expected "53690050592160553 ", got "53690052841604693 "stderr
2Nov 19, 2024 03:133,49752,344,01627,024,0002,001,0002,527,232
3Nov 19, 2024 03:443,51156,850,06328,103,0001,040,0002,392,064
4Nov 19, 2024 03:133,51455,697,64027,155,0002,011,0002,383,872
5Nov 19, 2024 03:133,51554,337,68327,164,0002,012,0002,482,176
6Nov 19, 2024 03:133,51749,816,22927,181,0002,013,0002,387,968
7Nov 19, 2024 03:133,51950,095,57627,197,0002,014,0002,273,280
8Nov 19, 2024 03:443,54059,815,54328,371,0001,013,0002,527,232
9Nov 19, 2024 03:133,54148,209,97229,389,00002,473,984
10Nov 19, 2024 03:443,54953,457,42828,442,0001,015,0002,527,232
11Nov 19, 2024 03:443,66852,906,10429,431,0001,014,0002,277,376
12Nov 19, 2024 03:133,68255,185,51329,541,0001,018,0002,531,328
13Nov 19, 2024 03:443,68552,854,82929,566,0001,019,0002,531,328
14Nov 19, 2024 03:443,71753,750,76429,854,000995,0002,531,328
15Nov 19, 2024 03:133,71855,402,15528,871,0001,991,0002,277,376
16Nov 19, 2024 03:133,71956,985,88028,877,0001,991,0002,387,968
17Nov 19, 2024 23:444,31960,972,74335,848,00002,379,776
18Nov 19, 2024 23:444,32764,441,44134,918,000997,0002,523,136
19Nov 19, 2024 23:444,36053,927,94534,181,0002,010,0002,527,232
20Nov 19, 2024 23:444,51859,764,98036,489,0001,013,0002,494,464
21Nov 19, 2024 23:444,60259,342,00736,189,0002,010,0002,392,064
22Nov 19, 2024 23:444,63559,465,67937,461,0001,012,0002,498,560