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 listDec 27, 2024 21:49Joad NacerJoad NacerScore: 4,560Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 21:494,48656,227,59736,229,0001,006,0002,502,656
2Dec 27, 2024 21:494,48662,049,25336,226,0001,006,0002,506,752
3Dec 27, 2024 21:494,55961,792,64036,844,000995,0002,506,752
4Dec 27, 2024 21:494,56072,759,62936,854,000996,0002,490,368
5Dec 27, 2024 21:494,61066,706,80935,246,0003,021,0002,531,328
6Dec 27, 2024 21:494,64866,969,28436,550,0002,030,0002,498,560