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 listJan 30, 2025 01:09PolycarbohydratePolycarbohydrateScore: 388,188Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 31, 2025 22:41386,9803,243,153,3963,159,948,00051,982,0002,281,472
2Jan 31, 2025 22:41387,1173,241,924,4963,147,112,00065,960,0002,289,664
3Jan 30, 2025 01:09387,1703,249,670,9743,149,537,00063,970,0002,285,568
4Jan 31, 2025 22:41387,3903,242,074,3503,144,374,00070,963,0002,285,568
5Jan 31, 2025 22:41387,4563,246,271,5173,140,933,00074,950,0002,285,568
6Jan 30, 2025 01:09387,6453,248,374,9863,154,487,00062,969,0002,289,664
7Jan 31, 2025 22:41387,6813,243,226,8733,143,783,00073,971,0002,289,664
8Jan 31, 2025 22:41388,0153,244,633,4083,153,556,00066,969,0002,359,296
9Jan 31, 2025 22:41388,1793,256,883,9453,158,927,00062,958,0002,289,664
10Jan 30, 2025 01:09388,1883,254,319,4883,158,003,00063,959,0002,289,664
11Jan 30, 2025 01:09388,4303,250,792,1303,172,004,00051,967,0002,281,472
12Jan 30, 2025 01:09388,5463,250,639,5543,147,960,00076,974,0002,281,472
13Jan 30, 2025 01:09388,6123,250,089,7463,164,510,00060,971,0002,281,472
14Jan 31, 2025 22:41388,9093,256,326,6483,141,003,00086,944,0002,281,472
15Jan 31, 2025 22:41389,7583,260,578,6833,157,044,00077,951,0002,367,488
16Jan 30, 2025 01:09390,4733,268,030,7503,171,971,00068,955,0002,289,664
17Jan 30, 2025 01:09390,8423,274,207,0853,175,010,00068,978,0002,285,568
18Jan 30, 2025 01:09397,5643,324,042,7383,227,810,00071,973,0002,367,488