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 14, 2023 04:21Victor MuñozVictor MuñozScore: 31,242Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2023 04:2129,796331,718,031247,309,77102,277,376
2Jun 14, 2023 04:2130,009304,132,854249,078,60402,273,280
3Jun 14, 2023 04:2130,712322,927,604254,906,17502,256,896
4Jun 14, 2023 04:2131,134281,797,555257,410,0001,001,0002,392,064
5Jun 14, 2023 04:2131,148288,567,430257,527,0001,002,0002,265,088
6Jun 14, 2023 04:2131,234284,770,875259,239,00002,265,088
7Jun 14, 2023 04:2131,242290,454,478258,305,0001,001,0002,265,088
8Jun 14, 2023 04:2131,252283,994,877259,392,00002,383,872
9Jun 14, 2023 04:2131,269288,140,514257,539,0001,996,0002,265,088
10Jun 14, 2023 04:2131,270287,708,989258,537,0001,002,0002,387,968
11Jun 14, 2023 04:2131,278286,131,227258,613,000998,0002,379,776
12Jun 14, 2023 04:2131,293286,699,514258,735,000998,0002,383,872