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:37GraceGraceScore: 79,669Success
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:3779,287721,662,174658,079,05802,269,184
2Jun 7, 2024 17:3579,302719,853,523658,204,00302,269,184
3Jun 7, 2024 17:3779,308719,746,267658,257,84002,269,184
4Jun 7, 2024 17:3579,447727,590,716659,412,69902,269,184
5Jun 7, 2024 17:3779,468718,215,432659,582,61102,277,376
6Jun 7, 2024 17:3779,494714,265,596659,801,90402,269,184
7Jun 7, 2024 17:3779,636735,461,379660,976,79802,256,896
8Jun 7, 2024 17:3779,664728,670,779661,207,79802,260,992
9Jun 7, 2024 17:3579,664733,150,069661,213,21602,273,280
10Jun 7, 2024 17:3779,669730,170,475661,252,78702,277,376
11Jun 7, 2024 17:3579,717732,215,064661,650,81502,396,160
12Jun 7, 2024 17:3779,749721,513,317661,914,55402,265,088
13Jun 7, 2024 17:3579,776733,949,001662,137,89102,269,184
14Jun 7, 2024 17:3780,396732,634,116667,290,31602,269,184
15Jun 7, 2024 17:3580,725727,465,656670,013,66302,277,376
16Jun 7, 2024 17:3780,940731,829,934671,800,47602,269,184
17Jun 7, 2024 17:3781,539746,570,692676,770,54702,273,280
18Jun 7, 2024 17:3781,652733,753,083677,709,17402,273,280