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 listMay 16, 2026 08:21M-RochatM-RochatError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 08:210342,920,125333,040,0001,158,0002,113,536expected "1021658 ", got "n=300425761 lines=30000000 first=[c39MhO77o][HUTeBHQp*][C4V%V][FJcPKvwsZaXLIRi][9rbNF0@fRGj][3cPt8RD8][fj2GoEtql0][runG41gmw] last=[b%WaeX][wtoYeSKuENN][N@SF][6H0cL1qQuC][o@6KV] "
2May 16, 2026 08:210342,737,442332,864,0001,124,0002,113,536expected "1019873 ", got "n=300315559 lines=30000000 first=[QQ%NvbQwS3kmx][r497##YDYyCPE][kyXc][%0ObzS#][IpE][mVhYeo#MP][F5U97*][YADqFD] last=[CbrFgTSZv7YJ0][vhns7P5mn][WmacyzC][GlqvhbU][RrRlyKaM] "
3May 16, 2026 08:210342,879,329332,939,0001,190,0002,113,536expected "1018663 ", got "n=300295073 lines=30000000 first=[AHM6k][FSOta9][pLJ8CfRKpDbB][j1O7llnKM*M][JjL@@In3QC][b4Rwf6f][UgRerEDLMC3p7h][YUkM] last=[zvOtYfFv%7pF][bGzpg][7vCE9tcjV][CN3XYzNaC1ABy3][AugJ] "