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 22, 2025 10:33Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:23Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:43016,259,7921,210,0002,574,0002,121,728expected "30 ", got "28 "
2Oct 31, 2026 16:430118,255,881104,150,0003,203,0002,113,536expected "2101346 ", got "1184178 "
3Oct 31, 2026 16:43014,727,3331,368,0002,730,0002,121,728expected "3 ", got "2 "
4Dec 22, 2025 10:334,873184,489,166157,818,0002,996,0002,510,848
5Dec 22, 2025 10:334,878187,036,891156,977,0003,999,0002,293,760
6Dec 22, 2025 10:334,887191,400,613156,278,0004,977,0002,445,312
7Dec 22, 2025 10:334,888192,089,985157,308,0004,007,0002,293,760
8Dec 22, 2025 10:334,899187,602,813156,663,0004,989,0002,293,760
9Dec 22, 2025 10:334,901186,048,177157,751,0003,993,0002,510,848
10Dec 22, 2025 10:334,902188,450,049157,771,0003,994,0002,293,760
11Dec 22, 2025 10:334,965189,080,885159,856,0003,996,0002,293,760
12Dec 22, 2025 10:335,035187,678,141162,139,0004,003,0002,523,136