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 10, 2024 18:26Joad NacerJoad NacerScore: 10,205Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2024 18:269,974110,331,41980,792,0001,994,0002,285,568
2Jun 10, 2024 18:269,984114,121,52280,869,0001,996,0002,285,568
3Jun 10, 2024 18:2610,042105,662,18981,339,0002,008,0002,265,088
4Jun 10, 2024 18:2610,100112,226,53981,834,0001,995,0002,277,376
5Jun 10, 2024 18:2610,143105,908,28482,186,0002,004,0002,531,328
6Jun 10, 2024 18:2610,164159,317,10984,359,63402,273,280
7Jun 10, 2024 18:2610,177106,653,91683,468,0001,005,0002,269,184
8Jun 10, 2024 18:2610,205159,940,08184,702,88302,265,088
9Jun 10, 2024 18:2610,393118,132,59084,256,0002,006,0002,285,568
10Jun 10, 2024 18:2610,475110,300,46184,945,0001,998,0002,285,568
11Jun 10, 2024 18:2610,520107,657,39087,318,00002,285,568
12Jun 10, 2024 18:2610,680115,327,69187,634,0001,007,0002,285,568
13Jun 10, 2024 18:2611,043120,499,24390,649,0001,007,0002,285,568
14Jun 10, 2024 18:2611,282146,482,16993,636,84202,269,184
15Jun 10, 2024 18:2611,630120,353,19295,528,0001,005,0002,285,568