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 listJan 7, 2026 22:26Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:43Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:51015,820,85803,423,0002,121,728expected "4449 ", got "4192 "
2Oct 15, 2026 20:51018,506,0125,811,0002,337,0002,121,728expected "26664 ", got "25060 "
3Oct 15, 2026 20:510138,698,832125,334,0002,168,0002,117,632expected "2102107 ", got "1739008 "
4Jan 7, 2026 22:2613,536476,160,800445,685,000999,0002,351,104
5Jan 7, 2026 22:2613,549471,502,042445,128,0002,000,0002,351,104
6Jan 7, 2026 22:2613,804485,244,616453,533,0001,997,0002,289,664
7Jan 7, 2026 22:2613,828485,876,133451,335,0004,992,0002,355,200
8Jan 7, 2026 22:2614,001489,640,046459,035,0003,000,0002,351,104
9Jan 7, 2026 22:2614,210500,567,667466,926,0001,999,0002,334,720
10Jan 7, 2026 22:2614,231494,658,202467,628,0001,998,0002,289,664
11Jan 7, 2026 22:2614,261497,182,174467,601,0002,997,0002,347,008
12Jan 7, 2026 22:2614,386510,181,693472,737,0001,998,0002,334,720