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 12:06GraceGraceScore: 4,264Success
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 12:064,12152,126,92634,208,0000176,128
2Jun 7, 2024 12:064,17465,512,97832,607,0002,037,000393,216
3Jun 7, 2024 12:064,17866,029,47632,638,0002,039,0002,494,464
4Jun 7, 2024 12:064,19461,799,95932,825,0001,989,0002,273,280
5Jun 7, 2024 12:064,19862,366,35131,855,0002,986,000389,120
6Jun 7, 2024 12:064,19857,618,39031,854,0002,986,0002,273,280
7Jun 7, 2024 12:064,19861,275,76731,855,0002,986,0002,490,368
8Jun 7, 2024 12:064,20660,346,24132,918,0001,995,0002,273,280
9Jun 7, 2024 12:064,21558,172,10233,983,000999,0002,486,272
10Jun 7, 2024 12:064,21856,346,90632,010,0003,001,0002,490,368
11Jun 7, 2024 12:064,22658,809,12032,073,0003,006,0002,490,368
12Jun 7, 2024 12:064,23162,683,22232,109,0003,010,0002,482,176
13Jun 7, 2024 12:064,23758,123,80634,167,0001,004,0002,273,280
14Jun 7, 2024 12:064,24363,533,65932,200,0003,018,0002,265,088
15Jun 7, 2024 12:064,24561,921,21733,220,0002,013,0002,273,280
16Jun 7, 2024 12:064,25259,640,47334,284,0001,008,0002,273,280
17Jun 7, 2024 12:064,26458,882,90432,361,0003,033,0002,486,272
18Jun 7, 2024 12:064,26660,383,37932,370,0003,034,0002,273,280
19Jun 7, 2024 12:064,27761,409,15733,474,0002,028,0002,486,272
20Jun 7, 2024 12:064,29865,124,49935,671,00002,273,280
21Jun 7, 2024 12:064,31969,557,37733,853,0001,991,0002,392,064
22Jun 7, 2024 12:064,351103,112,55236,110,31302,244,608
23Jun 7, 2024 12:064,381113,710,42736,359,59402,244,608
24Jun 7, 2024 12:064,418105,401,95836,672,04502,240,512
25Jun 7, 2024 12:064,42597,334,84536,724,02502,240,512
26Jun 7, 2024 12:064,43488,083,33636,805,61602,240,512
27Jun 7, 2024 12:064,436109,740,21336,820,82202,236,416
28Jun 7, 2024 12:064,439105,207,17436,843,00802,232,320
29Jun 7, 2024 12:064,443110,030,48636,877,39702,232,320
30Jun 7, 2024 12:064,456105,367,57536,987,53802,244,608
31Jun 7, 2024 12:064,468107,562,55237,084,32302,236,416
32Jun 7, 2024 12:064,497106,907,03037,328,19002,232,320
33Jun 7, 2024 12:064,698117,918,83438,995,28602,236,416