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 listJan 1, 2023 15:59Jack FrigaardJack FrigaardScore: 5,058Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 15:595,04767,443,84838,900,0002,992,0002,523,136
2Jan 1, 2023 15:595,049110,429,24041,906,20602,215,936
3Jan 1, 2023 15:595,04969,627,62538,915,0002,993,0002,523,136
4Jan 1, 2023 15:595,05164,999,19039,924,0001,996,0002,523,136
5Jan 1, 2023 15:595,05271,283,00539,935,0001,996,0002,457,600
6Jan 1, 2023 15:595,05570,445,16139,956,0001,997,0002,523,136
7Jan 1, 2023 15:595,056103,906,17541,965,88002,199,552
8Jan 1, 2023 15:595,05869,966,89838,981,0002,998,0002,449,408
9Jan 1, 2023 15:595,09466,311,28241,273,0001,006,0002,457,600
10Jan 1, 2023 15:595,10069,560,00039,308,0003,023,0002,523,136
11Jan 1, 2023 15:595,10365,262,47939,327,0003,025,0002,523,136
12Jan 1, 2023 15:595,10468,522,88739,341,0003,026,0002,523,136
13Jan 1, 2023 15:595,11092,872,61742,409,93302,203,648
14Jan 1, 2023 15:595,11065,618,64539,384,0003,029,0002,465,792
15Jan 1, 2023 15:595,11268,376,72740,406,0002,020,0002,523,136