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 12, 2025 13:56AdityaAdityaScore: 77,373Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2025 12:4777,194665,556,685573,744,00066,970,0002,273,280
2Jan 12, 2025 13:5377,213665,819,733576,885,00063,987,0002,387,968
3Jan 12, 2025 12:4777,274670,238,921570,331,00071,041,0002,273,280
4Jan 12, 2025 12:4777,298665,045,308574,615,00066,955,0002,273,280
5Jan 12, 2025 12:4777,309663,699,236587,694,00053,971,0002,273,280
6Jan 12, 2025 12:4777,312672,634,047592,712,00048,976,0002,387,968
7Jan 12, 2025 12:4777,371665,351,809595,165,00047,013,0002,273,280
8Jan 12, 2025 13:5377,373664,975,657567,174,00075,023,0002,273,280
9Jan 12, 2025 13:5377,443669,570,077576,803,00065,977,0002,273,280
10Jan 12, 2025 12:4777,463666,087,081572,950,00069,993,0002,269,184
11Jan 12, 2025 13:5677,472664,862,869579,015,00064,001,0002,273,280
12Jan 12, 2025 12:4777,516671,949,901574,341,00069,041,0002,273,280
13Jan 12, 2025 13:5677,588663,928,079574,981,00068,997,0002,506,752
14Jan 12, 2025 12:4777,629672,323,637558,278,00086,042,0002,273,280
15Jan 12, 2025 13:5677,834669,557,857577,021,00069,002,0002,273,280