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 5, 2024 15:56GraceGraceScore: 5,044Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 15:564,93063,592,90737,925,0002,994,0002,273,280
2Jun 5, 2024 15:564,94762,623,44540,055,0001,001,0002,486,272
3Jun 5, 2024 15:564,96167,638,02538,167,0003,013,0002,482,176
4Jun 5, 2024 15:564,96668,750,66038,204,0003,016,0002,273,280
5Jun 5, 2024 15:564,98766,532,03338,362,0003,028,0002,342,912
6Jun 5, 2024 15:564,98867,673,38138,372,0003,029,0002,433,024
7Jun 5, 2024 15:564,98960,526,90039,388,0002,019,0002,490,368
8Jun 5, 2024 15:565,00364,501,65639,504,0002,025,0002,490,368
9Jun 5, 2024 15:565,01870,911,72639,622,0002,031,0002,490,368
10Jun 5, 2024 15:565,044108,994,03441,863,17902,256,896
11Jun 5, 2024 15:565,04467,172,16439,873,0001,993,0002,494,464
12Jun 5, 2024 15:565,04966,000,96239,910,0001,995,0002,490,368
13Jun 5, 2024 15:565,087108,540,35542,219,08502,240,512
14Jun 5, 2024 15:565,092112,782,98042,261,39302,236,416
15Jun 5, 2024 15:565,097114,781,76442,308,71902,244,608
16Jun 5, 2024 15:565,103103,185,18442,351,52902,240,512
17Jun 5, 2024 15:565,119101,371,03242,483,92402,248,704
18Jun 5, 2024 15:565,123114,061,27442,518,97402,244,608
19Jun 5, 2024 15:565,12972,530,16041,557,0001,013,0002,273,280
20Jun 5, 2024 15:565,144133,202,66542,691,44502,236,416
21Jun 5, 2024 15:565,173113,454,57742,939,37902,236,416