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 04:26Rajarshi 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:400132,449,748117,461,0004,125,0002,117,632expected "2101466 ", got "1183861 "stderr
2Oct 31, 2026 16:400132,638,916117,750,0004,068,0002,117,632expected "2106367 ", got "1187801 "stderr
3Oct 31, 2026 16:405012,281,27701,671,0002,125,824stderr
4Dec 20, 2025 04:265,707211,364,498184,340,0004,007,0002,523,136
5Dec 20, 2025 04:265,712216,012,218184,483,0004,010,0002,351,104
6Dec 20, 2025 04:265,722215,615,693182,841,0005,994,0002,519,040
7Dec 20, 2025 04:265,758214,492,649183,002,0007,000,0002,514,944
8Dec 20, 2025 04:265,761215,181,225186,121,0004,002,0002,408,448
9Dec 20, 2025 04:265,798218,875,760187,336,0004,007,0002,449,408
10Dec 20, 2025 04:265,977224,124,196193,231,0004,004,0002,514,944
11Dec 20, 2025 04:265,982224,119,389191,437,0005,982,0002,510,848
12Dec 20, 2025 04:265,992226,166,936192,751,0004,993,0002,469,888