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 22, 2026 23:52Victor 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 22, 2026 23:530169,493,911124,477,00036,872,0002,113,536expected "1025459 ", got "1025457 "
2Jun 22, 2026 23:534,865168,485,061123,865,00036,709,0002,113,536
3Jun 22, 2026 23:534,884169,209,461124,292,00036,909,0002,113,536
4Jun 22, 2026 23:534,885169,417,965124,373,00036,841,0002,113,536
5Jun 22, 2026 23:534,886169,121,071123,632,00037,638,0002,113,536
6Jun 22, 2026 23:534,893169,438,090123,922,00037,578,0002,113,536
7Jun 22, 2026 23:534,904169,406,178124,337,00037,515,0002,113,536
8Jun 22, 2026 23:534,905169,465,465124,211,00037,664,0002,113,536
9Jun 22, 2026 23:534,911169,642,898124,276,00037,811,0002,113,536