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:10Rajarshi 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:56016,569,9952,831,0002,831,0002,121,728expected "15 ", got "19 "
2Oct 31, 2026 16:560119,249,961105,156,0003,033,0002,113,536expected "2104838 ", got "1187222 "
3Oct 31, 2026 16:5617617,175,8902,916,0002,916,0002,121,728
4Dec 22, 2025 10:104,929193,710,890158,679,0003,991,0002,465,792
5Dec 22, 2025 10:104,947189,785,543158,246,0005,007,0002,347,008
6Dec 22, 2025 10:104,948189,989,592160,295,0003,005,0002,510,848
7Dec 22, 2025 10:104,957189,266,631158,594,0004,987,0002,510,848
8Dec 22, 2025 10:104,958194,100,707160,614,0002,992,0002,510,848
9Dec 22, 2025 10:104,970186,989,312159,019,0005,000,0002,510,848
10Dec 22, 2025 10:104,976186,857,979159,207,0005,006,0002,314,240
11Dec 22, 2025 10:105,001193,744,202161,021,0004,000,0002,514,944
12Dec 22, 2025 10:105,129197,735,143165,282,0003,982,0002,506,752