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 listDec 20, 2025 14:37Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:24Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:50013,844,9081,643,0001,643,0002,121,728expected "7 ", got "5 "
2Oct 31, 2026 16:50017,499,1613,201,0003,488,0002,121,728expected "4325 ", got "3653 "
3Oct 31, 2026 16:500118,098,358103,195,0004,003,0002,113,536expected "2107068 ", got "1189405 "
4Dec 20, 2025 14:375,042195,183,961159,366,0007,016,0002,359,296
5Dec 20, 2025 14:375,043192,851,647161,395,0005,012,0002,523,136
6Dec 20, 2025 14:375,050193,013,335159,650,0006,984,0002,273,280
7Dec 20, 2025 14:375,075192,961,456162,494,0004,984,0002,519,040
8Dec 20, 2025 14:375,081196,682,850162,677,0004,990,0002,314,240
9Dec 20, 2025 14:375,087191,590,370163,881,0003,997,0002,519,040
10Dec 20, 2025 14:375,100194,450,061164,298,0004,007,0002,514,944
11Dec 20, 2025 14:375,116191,959,911161,823,0006,992,0002,318,336
12Dec 20, 2025 14:375,265197,110,260167,745,0005,990,0002,510,848