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 28, 2021 19:53Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 19:4600000Error: expected "53685053504561650 ", got "53685048379416050 "
2Jun 28, 2021 19:5300000generator exited with code 1
3Jun 28, 2021 19:5100000Error: expected "53690551282146013 ", got "53690548722146013 "
4Jun 28, 2021 19:4900000Error: expected "53680979866581462 ", got "53680979866325462 "
5Jun 28, 2021 19:4600000Error: expected "53692683543190262 ", got "53692683540374006 "
6Jun 28, 2021 19:4700000Error: expected "53690426784214928 ", got "53690421382589328 "
7Jun 28, 2021 19:4700000Error: expected "53682353779105509 ", got "53682353776263909 "
8Jun 28, 2021 19:4700000Error: expected "53682530925347535 ", got "53682530922787535 "
9Jun 28, 2021 19:4700000Error: expected "53690352544759410 ", got "53690352544733810 "
10Jun 28, 2021 19:5113,182389,456,773109,409,00002,260,992
11Jun 28, 2021 19:5113,189389,804,836108,462,0001,004,0002,260,992
12Jun 28, 2021 19:5113,193386,340,714108,496,0001,004,0002,392,064
13Jun 28, 2021 19:5113,210387,866,329107,651,0001,993,0002,260,992
14Jun 28, 2021 19:5113,212389,004,723108,662,000996,0002,392,064
15Jun 28, 2021 19:5113,216388,834,012108,694,000997,0002,523,136
16Jun 28, 2021 19:5113,216383,714,640108,697,000997,0002,392,064
17Jun 28, 2021 19:5113,218385,718,067108,711,000997,0002,387,968
18Jun 28, 2021 19:5113,220391,213,458109,724,00002,260,992
19Jun 28, 2021 19:4613,487417,734,915111,939,09602,269,184
20Jun 28, 2021 19:4513,488419,477,077111,948,49102,244,608
21Jun 28, 2021 19:4413,488415,209,178111,951,56702,265,088
22Jun 28, 2021 19:4413,488424,860,228111,950,84702,244,608
23Jun 28, 2021 19:4413,489410,942,829111,954,66002,240,512
24Jun 28, 2021 19:4413,489419,724,779111,956,88702,244,608
25Jun 28, 2021 19:4413,489415,542,494111,956,79902,265,088
26Jun 28, 2021 19:5113,491427,890,592111,975,78802,240,512
27Jun 28, 2021 19:4513,492419,177,681111,986,59402,265,088
28Jun 28, 2021 19:4613,493440,220,865111,991,98402,260,992
29Jun 28, 2021 19:4413,494421,592,210112,001,23702,260,992
30Jun 28, 2021 19:4613,494423,907,316112,003,71502,269,184
31Jun 28, 2021 19:5113,495413,284,873112,007,78002,240,512
32Jun 28, 2021 19:5113,500425,786,775112,047,72702,244,608
33Jun 28, 2021 19:4513,505425,193,339112,095,14702,240,512
34Jun 28, 2021 19:5313,512424,369,604112,149,39602,273,280
35Jun 28, 2021 19:5313,514416,726,400112,164,52802,240,512
36Jun 28, 2021 19:5313,524418,600,025112,245,18702,277,376
37Jun 28, 2021 19:5313,575388,046,113110,678,0001,994,0002,265,088
38Jun 28, 2021 19:5313,579391,286,780110,710,0001,994,0002,260,992
39Jun 28, 2021 19:5313,582391,108,532110,739,0001,995,0002,260,992
40Jun 28, 2021 19:5313,585394,354,879110,764,0001,995,0002,260,992
41Jun 28, 2021 19:5313,585395,175,154110,759,0001,995,0002,523,136
42Jun 28, 2021 19:5313,591389,747,057110,809,0001,996,0002,523,136
43Jun 28, 2021 19:5313,592394,493,191111,813,000998,0002,260,992
44Jun 28, 2021 19:5313,593390,027,233110,826,0001,996,0002,260,992
45Jun 28, 2021 19:5313,613390,175,539111,990,000999,0002,260,992