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 20, 2026 23:46Victor 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 20, 2026 23:470267,033,028222,032,00037,372,0002,113,536expected "1019647 ", got "1019646 "
2Jun 20, 2026 23:477,851266,615,946221,422,00037,664,0002,113,536
3Jun 20, 2026 23:477,864267,532,013221,319,00038,223,0002,113,536
4Jun 20, 2026 23:477,865267,015,466222,196,00037,378,0002,113,536
5Jun 20, 2026 23:477,871267,849,866222,275,00037,468,0002,113,536
6Jun 20, 2026 23:477,879267,708,693222,493,00037,544,0002,113,536
7Jun 20, 2026 23:477,903268,657,477222,271,00038,528,0002,113,536
8Jun 20, 2026 23:477,983270,989,924225,784,00037,666,0002,113,536
9Jun 20, 2026 23:477,986271,145,187226,026,00037,526,0002,113,536