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 17, 2026 00:49M-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 17, 2026 00:500725,949,534712,749,0004,218,0002,113,536expected "1019639 ", got "1019637 "
2May 17, 2026 00:5019,422649,978,669636,780,0004,171,0002,113,536
3May 17, 2026 00:5019,693659,246,712645,667,0004,228,0002,113,536
4May 17, 2026 00:5019,733662,985,025647,106,0004,083,0002,113,536
5May 17, 2026 00:5019,773661,390,226648,517,0004,022,0002,113,536
6May 17, 2026 00:5019,828665,977,879650,298,0004,051,0002,113,536
7May 17, 2026 00:5019,840666,647,170650,584,0004,150,0002,113,536
8May 17, 2026 00:5021,936734,507,393719,450,0004,446,0002,113,536
9May 17, 2026 00:5021,938733,511,267719,586,0004,399,0002,113,536