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 listDec 31, 2022 17:18Jack FrigaardJack FrigaardScore: 5,083Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:185,002101,503,61541,517,91802,211,840
2Dec 31, 2022 17:185,03867,489,46039,823,0001,991,0002,457,600
3Dec 31, 2022 17:185,04366,272,61138,868,0002,989,0002,523,136
4Dec 31, 2022 17:185,06066,412,99838,998,0002,999,0002,461,696
5Dec 31, 2022 17:185,06162,639,75140,008,0002,000,0002,523,136
6Dec 31, 2022 17:185,06475,690,35839,028,0003,002,0002,449,408
7Dec 31, 2022 17:185,06597,016,58842,036,15802,203,648
8Dec 31, 2022 17:185,08364,836,41539,180,0003,013,0002,523,136
9Dec 31, 2022 17:185,10367,830,12141,351,0001,008,0002,453,504
10Dec 31, 2022 17:185,10563,390,99241,365,0001,008,0002,437,120
11Dec 31, 2022 17:185,118104,460,30742,475,92602,207,744
12Dec 31, 2022 17:185,12165,056,90640,482,0002,024,0002,449,408
13Dec 31, 2022 17:185,12266,526,24940,488,0002,024,0002,281,472
14Dec 31, 2022 17:185,13073,243,70939,536,0003,041,0002,281,472
15Dec 31, 2022 17:185,16270,167,38040,849,0001,992,0002,453,504