Unique strings Sergey Svistunov

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Back to listDec 21, 2025 21:52zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:00Tomislav Tunkovic133.62CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:070413,222,555346,554,00057,954,0002,121,728expected "2919923 ", got "1488626 "stderr
2Sep 9, 2026 09:070409,752,802343,315,00057,557,0002,121,728expected "2919936 ", got "1488555 "stderr
3Sep 9, 2026 09:070416,107,350348,110,00059,292,0002,121,728expected "2919939 ", got "1488650 "stderr
4Dec 21, 2025 21:527,449269,507,278184,867,00060,956,0002,437,120
5Dec 21, 2025 21:527,454269,084,804186,976,00058,992,0002,437,120
6Dec 21, 2025 21:527,455273,556,225186,024,00060,007,0002,347,008
7Dec 21, 2025 21:527,459270,285,792183,110,00063,038,0002,289,664
8Dec 21, 2025 21:527,484271,180,838187,976,00058,992,0002,510,848
9Dec 21, 2025 21:527,487268,949,846186,055,00061,018,0002,437,120
10Dec 21, 2025 21:527,496272,540,338185,285,00062,095,0002,457,600
11Dec 21, 2025 21:527,523275,535,378187,189,00061,061,0002,428,928
12Dec 21, 2025 21:527,625271,050,728191,724,00059,913,0002,473,984