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 09:49Rajarshi 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:46017,758,3674,385,0002,336,0002,121,728expected "17371 ", got "13625 "
2Oct 31, 2026 16:460117,363,944102,795,0003,240,0002,117,632expected "2102309 ", got "1184327 "
3Oct 31, 2026 16:460116,790,653102,755,0003,116,0002,117,632expected "2108178 ", got "1190936 "
4Dec 22, 2025 09:494,922190,434,339158,417,0004,010,0002,510,848
5Dec 22, 2025 09:494,940185,084,385159,027,0004,000,0002,347,008
6Dec 22, 2025 09:494,947186,603,686160,252,0003,004,0002,510,848
7Dec 22, 2025 09:494,960186,703,905159,704,0003,992,0002,490,368
8Dec 22, 2025 09:494,966188,374,213159,866,0003,996,0002,400,256
9Dec 22, 2025 09:494,966186,501,376159,881,0003,997,0002,465,792
10Dec 22, 2025 09:494,968186,486,432159,944,0003,998,0002,428,928
11Dec 22, 2025 09:495,009192,916,453161,302,0004,007,0002,523,136
12Dec 22, 2025 09:495,043197,117,167162,425,0004,010,0002,293,760