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 5, 2026 09:26Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 09:2603,627,640,252617,218,0001,119,0002,113,536expected "53682461556815926 ", got " A25870 c19s226303 c19s625262 c19s825377 c19s1225235 c20s425582 c20s825386 c21s426492 A25709 c19s225981 c19s625289 c19s825388 c19s1225226 c20s425589 c20s825366 c21s426538 A25705 c19s225979 c19s625270 c19s825388 c19s1...
2Oct 5, 2026 09:2603,629,988,788619,530,0001,163,0002,113,536expected "53689402915251505 ", got " A25810 c19s226241 c19s625266 c19s825354 c19s1225187 c20s425803 c20s825510 c21s427184 A25679 c19s226028 c19s625232 c19s825338 c19s1225197 c20s425791 c20s825513 c21s427181 A25650 c19s225896 c19s625228 c19s825359 c19s1...
3Oct 5, 2026 09:2603,628,013,181617,861,0001,005,0002,113,536expected "53686663372578250 ", got " A25899 c19s226140 c19s625135 c19s825314 c19s1225063 c20s425576 c20s825357 c21s427392 A25662 c19s225782 c19s625128 c19s825213 c19s1225083 c20s425553 c20s825363 c21s427377 A25667 c19s225798 c19s625140 c19s825202 c19s1...