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 listMar 18, 2026 23:15Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:490291,928,588277,064,0004,049,0002,113,536expected "2900203 ", got "1983104 "
2Oct 31, 2026 17:490291,406,287277,657,0003,012,0002,113,536expected "2903919 ", got "1988036 "
3Oct 31, 2026 17:49012,322,80901,853,0002,117,632expected "515 ", got "461 "
4Mar 18, 2026 23:1516,881592,413,420552,058,0005,000,0002,449,408
5Mar 18, 2026 23:1516,904587,780,967552,818,0004,998,0002,273,280
6Mar 18, 2026 23:1516,916583,846,493554,221,0004,001,0002,449,408
7Mar 18, 2026 23:1516,929586,988,080553,674,0004,997,0002,449,408
8Mar 18, 2026 23:1516,938584,252,121552,944,0005,999,0002,457,600
9Mar 18, 2026 23:1516,942582,316,627553,072,0006,000,0002,297,856
10Mar 18, 2026 23:1516,953586,767,628553,447,0005,994,0002,449,408
11Mar 18, 2026 23:1516,973585,477,810554,107,0006,001,0002,310,144
12Mar 18, 2026 23:1517,072588,846,068555,400,0007,991,0002,273,280