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 13, 2025 16:10Advait IyerAdvait IyerScore: 66,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2025 16:2266,017578,261,567545,939,0001,999,0002,527,232
2Jan 13, 2025 16:1066,019574,324,825545,960,0001,999,0002,269,184
3Jan 13, 2025 16:1066,024572,495,005546,002,0002,000,0002,375,680
4Jan 13, 2025 16:2266,026573,684,420546,017,0002,000,0002,289,664
5Jan 13, 2025 16:2266,029577,292,471546,037,0002,000,0002,265,088
6Jan 13, 2025 16:2266,032575,199,420546,068,0002,000,0002,289,664
7Jan 13, 2025 16:1066,041570,742,607547,142,0001,000,0002,289,664
8Jan 13, 2025 16:1066,043574,860,816546,156,0002,000,0002,289,664
9Jan 13, 2025 16:2266,044572,578,398546,165,0002,000,0002,281,472
10Jan 13, 2025 16:2266,048574,533,821546,201,0002,000,0002,289,664
11Jan 13, 2025 16:1066,051573,774,403546,221,0002,000,0002,269,184
12Jan 13, 2025 16:1066,053574,692,453547,236,0001,000,0002,355,200
13Jan 13, 2025 16:1066,053571,810,033548,237,00002,269,184
14Jan 13, 2025 16:2266,065578,953,339547,343,0001,000,0002,289,664
15Jan 13, 2025 16:1066,066578,889,116547,344,0001,000,0002,265,088
16Jan 13, 2025 16:2266,069576,365,818546,376,0001,997,0002,273,280
17Jan 13, 2025 16:2266,073578,053,913547,406,0001,000,0002,367,488
18Jan 13, 2025 16:1066,074580,296,081547,414,0001,000,0002,281,472