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

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 14:49Victor Mercklé80.10CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 14:50016,011,7694,407,0003,610,0002,134,016expected "16384 ", got "16383 "stderr
2Jul 5, 2026 14:50016,828,2755,318,0003,323,0002,134,016expected "16384 ", got "16383 "stderr
3Jul 5, 2026 14:50016,253,1194,778,0003,611,0002,134,016expected "16384 ", got "16383 "stderr
4Jul 5, 2026 14:493,288116,572,369106,407,0002,126,0002,121,728stderr
5Jul 5, 2026 14:493,306117,129,285106,951,0002,157,0002,121,728stderr
6Jul 5, 2026 14:493,319117,539,145107,329,0002,200,0002,121,728stderr
7Jul 5, 2026 14:493,321117,711,419107,414,0002,208,0002,121,728stderr
8Jul 5, 2026 14:493,339118,323,472107,955,0002,262,0002,121,728stderr
9Jul 5, 2026 14:493,375119,505,599109,203,0002,199,0002,121,728stderr
10Jul 5, 2026 14:493,413120,944,662110,345,0002,289,0002,121,728stderr
11Jul 5, 2026 14:493,437121,609,554111,097,0002,339,0002,121,728stderr
12Jul 5, 2026 14:493,458122,177,930111,871,0002,262,0002,121,728stderr