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 16, 2026 22:49Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:23Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:240289,669,996272,434,0006,561,0002,113,536expected "2901331 ", got "1983261 "
2Oct 31, 2026 17:24031,998,61420,255,0001,069,0002,113,536expected "405 ", got "396 "
3Oct 31, 2026 17:240295,322,191277,904,0006,749,0002,113,536expected "2902936 ", got "1986524 "
4Mar 16, 2026 22:4527,839942,625,488903,687,00014,994,0002,486,272
5Mar 16, 2026 22:4527,946954,890,973913,230,0008,992,0002,318,336
6Mar 16, 2026 22:4528,005949,081,033911,166,00012,988,0002,363,392
7Mar 16, 2026 22:4528,048954,540,001914,601,00010,995,0002,367,488
8Mar 16, 2026 22:4528,088951,754,049917,915,0008,999,0002,359,296
9Mar 16, 2026 22:4928,098954,135,716912,241,00014,987,0002,351,104
10Mar 16, 2026 22:4928,206958,414,520919,790,00010,997,0002,351,104
11Mar 16, 2026 22:4528,376964,679,052924,418,00011,992,0002,367,488
12Mar 16, 2026 22:4528,382968,267,014925,624,00010,995,0002,297,856
13Mar 16, 2026 22:4528,432964,410,741927,266,00010,991,0002,355,200
14Mar 16, 2026 22:4528,545973,034,998929,991,00011,987,0002,424,832
15Mar 16, 2026 22:4928,599971,833,518936,779,0006,998,0002,301,952