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 5, 2024 13:57Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 13:5700000Error: expected "53683155439433349 ", got "53683190761504016 "
2Jun 5, 2024 13:5700000Error: expected "53689134129347747 ", got "53689192769839118 "
3Jun 5, 2024 13:5800000Error: expected "53684490363982759 ", got "53684885921543603 "
4Jun 5, 2024 13:5800000Error: expected "53690674485174253 ", got "53690711318107010 "
5Jun 5, 2024 13:5900000Error: expected "53691517569453370 ", got "53691921039355246 "
6Jun 5, 2024 13:5900000Error: expected "53688058469983280 ", got "53688069600363963 "
7Jun 5, 2024 14:0000000Error: expected "53686063075615413 ", got "53686278504789583 "
8Jun 5, 2024 13:585,748130,776,47747,707,86802,281,472
9Jun 5, 2024 13:585,809114,166,81248,213,11802,289,664
10Jun 5, 2024 14:015,822110,941,52348,320,65302,297,856
11Jun 5, 2024 14:015,837122,455,40948,447,50002,297,856
12Jun 5, 2024 14:015,850120,812,04448,557,26602,301,952
13Jun 5, 2024 13:585,915113,718,85849,097,89802,183,168