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 listApr 27, 2024 15:03Joad NacerJoad NacerScore: 13,886Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 15:0113,864138,552,192114,075,0001,000,0002,285,568
2Apr 27, 2024 15:0113,866137,689,410113,084,0002,001,0002,387,968
3Apr 27, 2024 15:0113,867142,175,273115,098,00002,285,568
4Apr 27, 2024 15:0113,869136,422,681113,109,0002,001,0002,523,136
5Apr 27, 2024 15:0113,873141,764,375113,144,0002,002,0002,285,568
6Apr 27, 2024 15:0113,874138,000,275113,156,0002,002,0002,531,328
7Apr 27, 2024 15:0313,874141,408,771113,151,0002,002,0002,285,568
8Apr 27, 2024 15:0313,875137,699,506113,157,0002,002,0002,285,568
9Apr 27, 2024 15:0313,877136,729,931113,178,0002,003,0002,519,040
10Apr 27, 2024 15:0313,878142,681,728113,183,0002,003,0002,519,040
11Apr 27, 2024 15:0313,881143,141,395113,209,0002,003,0002,510,848
12Apr 27, 2024 15:0313,882139,018,500114,223,0001,001,0002,265,088
13Apr 27, 2024 15:0113,886144,374,529114,253,0001,002,0002,285,568
14Apr 27, 2024 15:0113,888140,899,110113,263,0002,004,0002,285,568
15Apr 27, 2024 15:0314,076141,968,421114,834,0001,997,0002,347,008
16Apr 27, 2024 15:0114,118143,303,007115,180,0002,003,0002,285,568
17Apr 27, 2024 15:0314,363147,635,108118,212,0001,001,0002,510,848
18Apr 27, 2024 15:0114,574175,870,311120,963,63602,277,376
19Apr 27, 2024 15:0314,594143,502,772119,128,0002,002,0002,285,568
20Apr 27, 2024 15:0114,598185,274,552121,166,07302,269,184
21Apr 27, 2024 15:0314,703179,846,362122,037,97302,273,280
22Apr 27, 2024 15:0315,044178,009,809124,867,14502,273,280
23Apr 27, 2024 15:0315,174188,697,813125,942,43302,289,664
24Apr 27, 2024 15:0115,506185,207,722128,697,65402,289,664