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 4, 2024 05:49GraceGraceScore: 5,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 05:495,10964,563,17942,403,00002,392,064
2Jun 4, 2024 05:495,11470,668,56641,437,0001,010,0002,273,280
3Jun 4, 2024 05:495,11869,056,62142,477,00002,404,352
4Jun 4, 2024 05:495,12265,207,09142,509,00002,400,256
5Jun 4, 2024 05:495,12564,389,61341,522,0001,012,0002,387,968
6Jun 4, 2024 05:495,12571,450,47342,534,00002,273,280
7Jun 4, 2024 05:495,12666,965,61741,532,0001,012,0002,273,280
8Jun 4, 2024 05:495,13269,430,23341,585,0001,014,0002,404,352
9Jun 4, 2024 05:495,13567,250,26241,608,0001,014,0002,273,280
10Jun 4, 2024 05:495,30896,102,89644,056,48202,285,568
11Jun 4, 2024 05:495,314115,024,23344,110,16802,285,568
12Jun 4, 2024 05:495,344106,201,23044,352,79602,277,376
13Jun 4, 2024 05:496,15274,382,56550,064,0001,001,0002,400,256
14Jun 4, 2024 05:496,15373,906,94849,068,0002,002,0002,269,184
15Jun 4, 2024 05:496,27177,737,20550,049,0002,001,0002,273,280