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 14:58zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 16:04Victor Mercklé102.43CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 16:04015,791,5284,475,0003,336,0002,129,920expected "16384 ", got "16383 "stderr
2Jul 5, 2026 16:04015,803,9304,486,0003,322,0002,129,920expected "16384 ", got "16383 "stderr
3Jul 5, 2026 16:04015,689,3064,467,0003,246,0002,129,920expected "16384 ", got "16383 "stderr
4Jul 5, 2026 15:013,299116,915,398106,635,0002,237,0002,121,728stderr
5Jul 5, 2026 15:013,309119,048,397107,022,0002,197,0002,121,728stderr
6Jul 5, 2026 15:013,336118,232,330107,934,0002,166,0002,121,728stderr
7Jul 5, 2026 15:013,339118,242,974108,049,0002,166,0002,121,728stderr
8Jul 5, 2026 15:013,409120,546,245110,301,0002,210,0002,121,728stderr
9Jul 5, 2026 15:013,433121,366,997111,157,0002,154,0002,121,728stderr
10Jul 5, 2026 15:013,438121,927,664111,428,0002,027,0002,121,728stderr
11Jul 5, 2026 15:013,441121,605,167111,521,0002,042,0002,121,728stderr
12Jul 5, 2026 15:013,505123,834,472113,508,0002,165,0002,121,728stderr