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 07:23matsuoka-601matsuoka-601Error
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 07:2400000Error: expected "53692308132285239 ", got "97060755534661341"
2Jun 7, 2024 07:2900000Error: expected "53689929990228247 ", got "96314535725677195"
3Jun 7, 2024 07:2800000Error: expected "53692500358492422 ", got "79776745196615007"
4Jun 7, 2024 07:2800000Error: expected "53691289612209775 ", got "85627153291431668"
5Jun 7, 2024 07:2800000Error: expected "53688935754057638 ", got "67689168508189088"
6Jun 7, 2024 07:2700000Error: expected "53687773643683223 ", got "60830545453212441"
7Jun 7, 2024 07:2700000Error: expected "53691123554324534 ", got "85679516664786606"
8Jun 7, 2024 07:2600000Error: expected "53690414122638052 ", got "83661401505632231"
9Jun 7, 2024 07:2600000Error: expected "53692470181168681 ", got "61644824453400110"
10Jun 7, 2024 07:2600000Error: expected "53689908540024307 ", got "75795057378916163"
11Jun 7, 2024 07:2500000Error: expected "53686583999544842 ", got "53686581579114594"
12Jun 7, 2024 07:2300000Error: expected "53691507348948005 ", got "80577651861791376"
13Jun 7, 2024 07:2300000Error: expected "53692251509746144 ", got "60967086314425849"
14Jun 7, 2024 07:305,230101,706,26143,408,11802,260,992
15Jun 7, 2024 07:245,234113,330,31243,441,51802,256,896
16Jun 7, 2024 07:245,286100,504,92243,869,96502,265,088
17Jun 7, 2024 07:305,298105,634,73043,976,99502,269,184
18Jun 7, 2024 07:275,298120,338,97643,971,75902,256,896
19Jun 7, 2024 07:245,329119,794,01744,232,42102,256,896
20Jun 7, 2024 07:275,364117,682,41844,522,30502,252,800
21Jun 7, 2024 07:305,369114,396,87644,566,33502,269,184
22Jun 7, 2024 07:275,453128,839,04345,255,89202,256,896