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 listJun 28, 2026 02:01Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2026 02:010121,797,519112,828,0001,186,0002,113,536expected "1025807 ", got "1025806 "
2Jun 28, 2026 02:013,430120,943,073112,082,0001,132,0002,113,536
3Jun 28, 2026 02:013,432121,554,082112,100,0001,168,0002,113,536
4Jun 28, 2026 02:013,438121,211,712112,313,0001,167,0002,113,536
5Jun 28, 2026 02:013,442121,469,856112,508,0001,100,0002,113,536
6Jun 28, 2026 02:013,442121,436,878112,435,0001,168,0002,113,536
7Jun 28, 2026 02:013,446121,638,237112,566,0001,169,0002,113,536
8Jun 28, 2026 02:013,457122,349,496112,908,0001,188,0002,113,536
9Jun 28, 2026 02:013,468122,207,712113,306,0001,141,0002,113,536