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 19, 2025 09:26Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:37Andrew Epstein26.25CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:43078,942,51260,257,0007,425,0002,117,632expected "2105088 ", got "1187023 "stderr
2Oct 15, 2026 20:43022,610,18810,314,0001,066,0002,117,632expected "313 ", got "259 "stderr
3Oct 15, 2026 20:43078,479,89459,892,0007,246,0002,117,632expected "2102646 ", got "1185915 "stderr
4Dec 19, 2025 09:266,346236,511,333205,423,0004,008,0002,277,376
5Dec 19, 2025 09:266,361238,268,191204,905,0004,997,0002,428,928
6Dec 19, 2025 09:266,371241,564,533203,230,0007,007,0002,387,968
7Dec 19, 2025 09:266,377240,745,581204,416,0006,012,0002,392,064
8Dec 19, 2025 09:266,381234,059,349199,588,00010,977,0002,498,560
9Dec 19, 2025 09:266,410236,653,011204,542,0006,984,0002,359,296
10Dec 19, 2025 09:266,421235,309,138204,886,0006,996,0002,482,176
11Dec 19, 2025 09:266,437244,228,665202,446,0009,972,0002,469,888
12Dec 19, 2025 09:266,558248,011,078209,449,0006,981,0002,519,040