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 29, 2024 19:02Steve HanSteve HanScore: 16,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 19:0216,246198,385,628134,842,69202,260,992
2Apr 29, 2024 19:0316,307207,660,387135,348,34802,277,376
3Apr 29, 2024 19:0316,354209,167,125135,742,16602,269,184
4Apr 29, 2024 19:0316,368191,254,355135,856,82502,269,184
5Apr 29, 2024 19:0416,381193,946,417135,962,22902,260,992
6Apr 29, 2024 19:0316,401200,488,796136,132,03102,269,184
7Apr 29, 2024 19:0216,405195,686,743136,163,64002,260,992
8Apr 29, 2024 19:0416,438198,895,233136,437,30602,396,160
9Apr 29, 2024 19:0216,453194,641,176136,557,65202,273,280
10Apr 29, 2024 19:0217,056217,503,380141,566,48002,273,280
11Apr 29, 2024 19:0217,089195,564,310141,838,66702,273,280
12Apr 29, 2024 19:0217,094211,094,203141,884,24702,277,376
13Apr 29, 2024 19:0317,097204,005,991141,903,84002,396,160
14Apr 29, 2024 19:0417,125207,189,339142,135,23102,277,376
15Apr 29, 2024 19:0317,159210,409,548142,419,81702,269,184