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 23:31Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:44Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:53013,181,62002,784,0002,117,632expected "1958 ", got "1865 "
2Oct 15, 2026 20:530124,937,320112,510,0002,017,0002,113,536expected "2108362 ", got "1745256 "
3Oct 15, 2026 20:538313,140,85602,761,0002,117,632
4Jan 7, 2026 22:3912,435434,283,629408,340,0002,001,0002,383,872
5Jan 7, 2026 22:3912,602441,487,385412,860,0002,998,0002,383,872
6Jan 7, 2026 22:3912,668442,800,134415,039,0003,000,0002,273,280
7Jan 7, 2026 22:3912,792450,481,318420,129,0002,000,0002,273,280
8Jan 7, 2026 22:3912,792452,047,414420,140,0002,000,0002,277,376
9Jan 7, 2026 22:3912,924452,453,416423,493,0002,996,0002,277,376
10Jan 7, 2026 22:3912,967456,435,590425,909,0001,999,0002,277,376
11Jan 7, 2026 22:3913,101460,505,090429,326,0002,995,0002,379,776
12Jan 7, 2026 22:3913,140457,325,852429,630,0003,996,0002,273,280
13Jan 7, 2026 23:3113,200463,055,174430,597,0004,995,0002,277,376
14Jan 7, 2026 23:3113,290469,449,051435,589,0002,997,0002,277,376
15Jan 7, 2026 23:3113,391466,128,216438,901,0002,999,0002,371,584