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 listOct 14, 2024 15:57Joad NacerJoad NacerScore: 4,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 15:574,37161,244,54834,263,0002,015,0002,379,776
2Oct 14, 2024 15:574,38159,689,20434,345,0002,020,0002,392,064
3Oct 14, 2024 15:574,39259,999,46535,438,0001,012,0002,535,424
4Oct 14, 2024 15:574,39258,294,82335,439,0001,012,0002,535,424
5Oct 14, 2024 15:574,40160,497,93734,498,0002,029,0002,306,048
6Oct 14, 2024 15:574,40467,430,08934,524,0002,030,0002,301,952
7Oct 14, 2024 15:574,40961,522,50034,560,0002,032,0002,469,888
8Oct 14, 2024 15:574,43857,894,12233,850,0002,986,0002,301,952
9Oct 14, 2024 15:574,43960,889,07135,846,000995,0002,379,776
10Oct 14, 2024 15:574,44061,964,17734,857,0001,991,0002,531,328
11Oct 14, 2024 15:574,44962,341,44035,929,000998,0002,531,328
12Oct 14, 2024 15:574,50862,999,53337,417,00002,301,952
13Oct 14, 2024 15:574,50962,184,21936,410,0001,011,0002,269,184
14Oct 14, 2024 15:574,54068,470,27837,685,00002,269,184
15Oct 14, 2024 15:574,76167,103,57039,515,00002,297,856