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 21, 2026 06:04Victor 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 21, 2026 06:040217,407,059170,913,00038,484,0002,113,536expected "1020809 ", got "1020808 "
2Jun 21, 2026 06:046,293215,324,807170,115,00037,566,0002,113,536
3Jun 21, 2026 06:046,293215,320,663170,272,00037,408,0002,113,536
4Jun 21, 2026 06:046,315216,169,840169,952,00038,468,0002,113,536
5Jun 21, 2026 06:046,337216,611,640170,800,00038,341,0002,113,536
6Jun 21, 2026 06:046,347216,948,823170,869,00038,596,0002,113,536
7Jun 21, 2026 06:046,350217,277,964171,234,00038,323,0002,113,536
8Jun 21, 2026 06:046,425219,677,685174,708,00037,326,0002,113,536
9Jun 21, 2026 06:046,429219,735,587174,818,00037,348,0002,113,536