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 6, 2024 11:50matsuoka-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 6, 2024 11:5000000Error: expected "53692035884251609 ", got "63724271101333005 "
2Jun 6, 2024 11:5100000Error: expected "53690704376079243 ", got "63814255796672410 "
3Jun 6, 2024 11:5100000Error: expected "53690114726199187 ", got "80215908709823437 "
4Jun 6, 2024 11:5200000Error: expected "53692342274564866 ", got "77954688954522249 "
5Jun 6, 2024 11:5200000Error: expected "53692433769631612 ", got "91994641627873607 "
6Jun 6, 2024 11:5300000Error: expected "53685777012028060 ", got "83654700626079846 "
7Jun 6, 2024 11:535,457104,292,86845,292,35202,256,896
8Jun 6, 2024 11:535,571109,875,25346,241,47302,256,896
9Jun 6, 2024 11:515,575106,999,05546,273,06302,236,416
10Jun 6, 2024 11:515,576131,471,41746,278,03602,252,800
11Jun 6, 2024 11:515,583116,120,05146,334,94502,248,704
12Jun 6, 2024 11:535,617111,699,78046,617,16302,240,512