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 listJun 7, 2024 17:39GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 17:3800000Error: expected "53690847462432165 ", got "53690909524068417 "stderr
2Jun 7, 2024 17:3859,116546,796,894490,663,72402,256,896
3Jun 7, 2024 17:3959,175555,700,297491,149,05902,392,064
4Jun 7, 2024 17:3959,190553,480,974491,279,39902,269,184
5Jun 7, 2024 17:3959,196567,935,227491,328,41002,265,088
6Jun 7, 2024 17:3959,204558,951,969491,391,03302,269,184
7Jun 7, 2024 17:3859,210571,512,559491,440,24702,404,352
8Jun 7, 2024 17:3959,222557,130,218491,546,41102,273,280
9Jun 7, 2024 17:3959,228568,250,237491,591,16002,269,184
10Jun 7, 2024 17:3959,233558,278,118491,635,46502,265,088
11Jun 7, 2024 17:3859,244570,060,273491,724,49202,269,184
12Jun 7, 2024 17:3959,248560,329,308491,758,70902,269,184
13Jun 7, 2024 17:3959,340569,388,301492,518,87102,265,088
14Jun 7, 2024 17:3959,556552,219,210494,310,76602,269,184
15Jun 7, 2024 17:3959,678571,996,793495,327,31602,256,896
16Jun 7, 2024 17:3959,802558,692,543496,356,29502,269,184