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 3, 2026 06:10Karthik 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 3, 2026 06:100319,164,977307,252,0001,251,0002,113,536expected "53684927287479679 ", got "len524124680 lines50000000 dh1000 v 1492355846 2063458966 1645127844 1498367527 1187589903 2122568684 1237135955 59798973 497113009 1216864842 27038148 205696098 452990005 2140311595 921378478 1815161234 377564068 89...
2Oct 3, 2026 06:100318,914,530307,366,0001,001,0002,113,536expected "53683774211016897 ", got "len524127100 lines50000000 dh1000 v 1603212284 1035318509 300021598 2054471573 376716510 95462084 1453573241 222353342 1226633401 1867976207 1892685455 1915775771 887660609 2076473873 110299465 1193029718 953939492 1...
3Oct 3, 2026 06:100318,842,267307,178,0001,160,0002,113,536expected "53680245300935442 ", got "len524120305 lines50000000 dh1000 v 1090372091 2006793412 2091374756 553514921 1483327472 803573970 144157721 1255262735 1954175827 465439117 1242908222 1928503318 1545946404 1834558772 639288168 1857861875 104354733...