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 9, 2026 04:33Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:22Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:360116,943,41899,153,0006,637,0002,113,536expected "2906410 ", got "2906408 "
2Oct 31, 2026 16:363,181115,669,30898,267,0006,733,0002,113,536
3Oct 31, 2026 16:363,184115,834,12198,486,0006,611,0002,113,536
4Jan 9, 2026 04:338,706321,978,432279,295,0008,008,0002,387,968
5Jan 9, 2026 04:338,714312,221,219280,580,0006,989,0002,457,600
6Jan 9, 2026 04:338,721310,695,611278,809,0008,993,0002,363,392
7Jan 9, 2026 04:338,732310,290,472282,149,0006,003,0002,273,280
8Jan 9, 2026 04:338,751314,405,698281,781,0006,994,0002,306,048
9Jan 9, 2026 04:338,755315,176,145282,930,0005,998,0002,375,680
10Jan 9, 2026 04:338,789316,715,257283,052,0007,001,0002,273,280
11Jan 9, 2026 04:338,805322,764,693281,592,0008,987,0002,371,584
12Jan 9, 2026 04:338,810317,235,295281,753,0008,992,0002,326,528