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 listJul 5, 2026 03:05zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 03:09Victor Mercklé18.84CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 03:09013,711,2932,235,0003,374,0002,129,920expected "16384 ", got "16383 "stderr
2Jul 5, 2026 03:09013,337,7372,774,0002,775,0002,129,920expected "16384 ", got "16383 "stderr
3Jul 5, 2026 03:09013,683,1382,792,0002,793,0002,129,920expected "16384 ", got "16383 "stderr
4Jul 5, 2026 03:073,299116,871,166106,628,0002,247,0002,121,728stderr
5Jul 5, 2026 03:073,320117,527,695107,274,0002,298,0002,121,728stderr
6Jul 5, 2026 03:073,345118,732,137108,110,0002,278,0002,121,728stderr
7Jul 5, 2026 03:073,346118,478,779108,216,0002,204,0002,121,728stderr
8Jul 5, 2026 03:073,360119,043,395108,472,0002,410,0002,121,728stderr
9Jul 5, 2026 03:073,367120,746,376108,947,0002,164,0002,121,728stderr
10Jul 5, 2026 03:073,375119,852,990109,155,0002,252,0002,121,728stderr
11Jul 5, 2026 03:073,407120,749,088110,132,0002,331,0002,121,728stderr
12Jul 5, 2026 03:073,736139,777,254120,967,0002,326,0002,121,728stderr