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 listMay 25, 2024 11:05GraceGraceScore: 8,912Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:058,835100,460,76671,321,0002,009,0002,285,568
2May 25, 2024 11:058,880100,164,18372,698,0001,009,0002,273,280
3May 25, 2024 11:058,892100,268,05571,807,0001,994,0002,285,568
4May 25, 2024 11:058,894105,870,29871,822,0001,995,0002,269,184
5May 25, 2024 11:058,897105,520,19371,854,0001,995,0002,273,280
6May 25, 2024 11:058,90697,285,76571,925,0001,997,0002,285,568
7May 25, 2024 11:058,90796,346,32271,931,0001,998,0002,387,968
8May 25, 2024 11:058,91298,203,95071,970,0001,999,0002,273,280
9May 25, 2024 11:058,91496,747,70171,985,0001,999,0002,285,568
10May 25, 2024 11:058,980100,846,38474,530,00002,265,088
11May 25, 2024 11:059,040102,724,59173,028,0002,000,0002,269,184
12May 25, 2024 11:059,05099,215,88573,116,0002,003,0002,273,280
13May 25, 2024 11:059,387152,439,95177,915,70902,252,800
14May 25, 2024 11:059,433145,387,61278,297,35102,297,856
15May 25, 2024 11:059,465147,045,44778,558,53002,289,664