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 listNov 10, 2024 19:42Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2024 19:4400000Error: expected "53687443872070643 ", got "53687443872045043 "
2Nov 10, 2024 19:3600000Error: expected "53682887754780293 ", got "53682887754780037 "
3Nov 10, 2024 19:3600000Error: expected "53680906460769789 ", got "53680906460744189 "
4Nov 10, 2024 19:3500000Error: expected "53681903194561448 ", got "53681903192001448 "
5Nov 10, 2024 19:4528,818267,160,020237,189,0002,001,0002,293,760
6Nov 10, 2024 19:3728,829267,307,330239,280,00002,527,232
7Nov 10, 2024 19:4528,830270,320,311238,290,0001,001,0002,531,328
8Nov 10, 2024 19:4528,830260,708,455238,285,0001,001,0002,293,760
9Nov 10, 2024 19:3728,831261,010,599238,299,0001,001,0002,293,760
10Nov 10, 2024 19:4528,831263,450,554238,294,0001,001,0002,293,760
11Nov 10, 2024 19:4528,832264,215,800238,303,0001,001,0002,293,760
12Nov 10, 2024 19:4528,832265,163,109237,304,0002,002,0002,523,136
13Nov 10, 2024 19:3728,833261,727,817239,316,00002,531,328
14Nov 10, 2024 19:4528,833267,600,309238,312,0001,001,0002,293,760
15Nov 10, 2024 19:4228,833264,332,052237,311,0002,002,0002,293,760
16Nov 10, 2024 19:3728,836265,537,290237,339,0002,002,0002,367,488
17Nov 10, 2024 19:3728,838265,806,656238,352,0001,001,0002,293,760
18Nov 10, 2024 19:3728,841272,649,983237,390,0001,994,0002,531,328
19Nov 10, 2024 19:4528,842269,001,504238,390,0001,001,0002,293,760
20Nov 10, 2024 19:3728,843260,854,959238,396,0001,001,0002,293,760
21Nov 10, 2024 19:4228,844265,557,987238,403,0001,001,0002,531,328
22Nov 10, 2024 19:4228,853266,647,533238,478,0001,002,0002,289,664
23Nov 10, 2024 19:4228,853269,452,862238,476,0001,002,0002,293,760
24Nov 10, 2024 19:3728,854270,824,441238,488,0001,002,0002,273,280
25Nov 10, 2024 19:4528,855266,203,267238,491,0001,002,0002,531,328
26Nov 10, 2024 19:3728,859270,794,060238,526,0001,002,0002,277,376
27Nov 10, 2024 19:4228,863268,338,818238,560,0001,002,0002,531,328
28Nov 10, 2024 19:4228,866270,776,027238,587,000998,0002,531,328