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 4, 2024 18:49GraceGraceScore: 5,067Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 18:494,92068,231,76739,844,000996,0002,273,280
2Jun 4, 2024 18:494,93363,536,26039,945,000998,0002,273,280
3Jun 4, 2024 18:494,93969,731,66239,994,000999,0002,273,280
4Jun 4, 2024 18:494,93963,870,15738,997,0001,999,0002,273,280
5Jun 4, 2024 18:494,94063,765,10240,000,0001,000,0002,273,280
6Jun 4, 2024 18:494,94062,399,76140,002,0001,000,0002,273,280
7Jun 4, 2024 18:494,94167,880,13639,009,0002,000,0002,273,280
8Jun 4, 2024 18:494,94265,317,45839,019,0002,000,0002,396,160
9Jun 4, 2024 18:494,94764,993,66540,062,0001,001,0002,273,280
10Jun 4, 2024 18:495,067105,643,83642,058,64402,289,664
11Jun 4, 2024 18:495,068118,682,19842,067,25502,289,664
12Jun 4, 2024 18:495,069110,446,99042,074,53102,273,280
13Jun 4, 2024 18:495,076119,770,58442,132,82802,281,472
14Jun 4, 2024 18:495,078115,495,50442,150,73702,281,472
15Jun 4, 2024 18:495,122115,273,32042,509,97902,285,568
16Jun 4, 2024 18:495,85377,329,74347,566,0001,012,0002,392,064
17Jun 4, 2024 18:495,85473,910,46348,591,00002,273,280
18Jun 4, 2024 18:495,95875,358,77449,452,00002,273,280