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 20, 2025 12:21Aniruddha DebAniruddha DebError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:30Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:320334,677,858248,085,00077,200,0002,121,728expected "2105919 ", got "1188897 "stderr
2Oct 15, 2026 20:324,144146,375,05370,668,00066,113,0002,121,728stderr
3Oct 15, 2026 20:324,290151,563,66572,014,00069,587,0002,121,728stderr
4Jul 20, 2025 12:2117,630606,052,351541,810,00039,985,0002,347,008
5Jul 20, 2025 12:2117,663608,425,332533,980,00048,906,0002,359,296
6Jul 20, 2025 12:2117,676609,336,401542,367,00040,952,0002,285,568
7Jul 20, 2025 12:2117,683610,435,149539,568,00043,964,0002,342,912
8Jul 20, 2025 12:2117,719610,874,846534,827,00049,890,0002,351,104
9Jul 20, 2025 12:2117,734611,155,558539,277,00045,938,0002,342,912
10Jul 20, 2025 12:2117,990620,440,558549,759,00043,900,0002,347,008
11Jul 20, 2025 12:2118,132629,633,098558,457,00039,889,0002,355,200
12Jul 20, 2025 12:2118,169632,036,480555,691,00043,896,0002,342,912